public Size GetPageSize(int pageIndex) { if (pageIndex < 0 || pageIndex > this.LastPageIndex) { return(Size.Empty); } if (!this.pageSizeArray[pageIndex].IsEmpty) { return(this.pageSizeArray[pageIndex]); } BondiDJVUActions.SIZE size = new BondiDJVUActions.SIZE(); if (!BondiDJVUActions.GetPageSize(pageIndex, ref size)) { return(Size.Empty); } this.pageSizeArray[pageIndex] = size.Size; return(this.pageSizeArray[pageIndex]); }
static extern bool GetPageSize(int pageIndex, ref BondiDJVUActions.SIZE size);