Xceed Words for .NET v3.0 Documentation
InsertPageCount Method


Xceed.Document.NET Assembly > Xceed.Document.NET Namespace > Paragraph Class : InsertPageCount Method
The PageNumberFormat that will be used. This value can be null.
The index at which the PageCount placeholder will be inserted.
Determines if the page count will come from the Section (true) or the Document (false). The default setting is false.
Inserts a PageCount placeholder at a specific location in the Paragraph.
Syntax
'Declaration
 
Public Sub InsertPageCount( _

   Optional ByVal pnf As Nullable(Of PageNumberFormat), _

   Optional ByVal index As Integer, _

   Optional ByVal useSectionPageCount As Boolean _

) 
'Usage
 
Dim instance As Paragraph

Dim pnf As Nullable(Of PageNumberFormat)

Dim index As Integer

Dim useSectionPageCount As Boolean

 

instance.InsertPageCount(pnf, index, useSectionPageCount)
public void InsertPageCount( 

   Nullable<PageNumberFormat> pnf,

   int index,

   bool useSectionPageCount

)

Parameters

pnf
The PageNumberFormat that will be used. This value can be null.
index
The index at which the PageCount placeholder will be inserted.
useSectionPageCount
Determines if the page count will come from the Section (true) or the Document (false). The default setting is false.
Remarks

The PageCount placeholder should only be inserted in a Header or Footer Paragraph. The field will not automatically be updated if it is inserted in a document-level Paragraph.

If needed, the property Section.PageNumberType can be used to format the page numbers.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Paragraph Class
Paragraph Members