C# 클래스 Aspose.Words.Examples.CSharp.Loading_Saving.PageNumberFinder

Provides methods for extracting nodes of a document which are rendered on a specified pages.
파일 보기 프로젝트 열기: aspose-words/Aspose.Words-for-.NET 1 사용 예제들

공개 메소드들

메소드 설명
GetPage ( Node node ) : int

Retrieves 1-based index of a page that the node begins on.

GetPageEnd ( Node node ) : int

Retrieves 1-based index of a page that the node ends on.

PageNumberFinder ( LayoutCollector collector ) : System

Initializes new instance of this class.

PageSpan ( Node node ) : int

Returns how many pages the specified node spans over. Returns 1 if the node is contained within one page.

RetrieveAllNodesOnPages ( int startPage, int endPage, NodeType nodeType ) : ArrayList

Returns a list of nodes that are contained anywhere on the specified page or pages which match the specified node type.

SplitNodesAcrossPages ( ) : void

Splits nodes which appear over two or more pages into separate nodes so that they still appear in the same way But no longer appear across a page.

비공개 메소드들

메소드 설명
AddPageNumbersForNode ( Node node, int startPage, int endPage ) : void

This is called by SectionSplitter to update page numbers of split nodes.

CheckPageListsPopulated ( ) : void
IsHeaderFooterType ( Node node ) : bool

메소드 상세

GetPage() 공개 메소드

Retrieves 1-based index of a page that the node begins on.
public GetPage ( Node node ) : int
node Node
리턴 int

GetPageEnd() 공개 메소드

Retrieves 1-based index of a page that the node ends on.
public GetPageEnd ( Node node ) : int
node Node
리턴 int

PageNumberFinder() 공개 메소드

Initializes new instance of this class.
public PageNumberFinder ( LayoutCollector collector ) : System
collector LayoutCollector A collector instance which has layout model records for the document.
리턴 System

PageSpan() 공개 메소드

Returns how many pages the specified node spans over. Returns 1 if the node is contained within one page.
public PageSpan ( Node node ) : int
node Node
리턴 int

RetrieveAllNodesOnPages() 공개 메소드

Returns a list of nodes that are contained anywhere on the specified page or pages which match the specified node type.
public RetrieveAllNodesOnPages ( int startPage, int endPage, NodeType nodeType ) : ArrayList
startPage int
endPage int
nodeType NodeType
리턴 System.Collections.ArrayList

SplitNodesAcrossPages() 공개 메소드

Splits nodes which appear over two or more pages into separate nodes so that they still appear in the same way But no longer appear across a page.
public SplitNodesAcrossPages ( ) : void
리턴 void