Aspose.Words.Examples.CSharp.Loading_Saving.PageNumberFinder.GetPage C# (CSharp) Method

GetPage() public method

Retrieves 1-based index of a page that the node begins on.
public GetPage ( Node node ) : int
node Node
return int
        public int GetPage(Node node)
        {
            if (mNodeStartPageLookup.ContainsKey(node))
                return (int)mNodeStartPageLookup[node];

            return mCollector.GetStartPageIndex(node);
        }