Esempio n. 1
0
        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]);
        }
Esempio n. 2
0
 static extern bool GetPageSize(int pageIndex, ref BondiDJVUActions.SIZE size);