ODF .NET Class Library
Show/Hide TOC

# PageNumber Class

Displays the current page number.

## Definition

Namespace: Independentsoft.Office.Odf.Fields
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class PageNumber : Field

VB

    Public Class PageNumber
    	Inherits Field

Inheritance
  Object Field PageNumber

## Constructors

PageNumber | Initializes a new instance of the PageNumber class.

## Properties

Adjustment | Specifies an adjustment of the value of a page number field, in order to display of page numbers of following or preceding pages. The specified value is added to the current page number. If a page with the resulting page number does not exist, no number is displayed.
IsFixed | Specifies whether the value of a field element is fixed. The defined values are: -false: value of field element may be replaced with a new value in future edits. -true: value of field element shall be preserved in future edits.
PageContinuation |
SelectPage | Specifies whether to display or not the number of a previous or following page rather than the number of the current page. The defined values are: -current: number of the current page. -next: number of the page immediately following the current page. -previous: number of the page immediately preceding the current page.
Style | Contains the name of a data style.
Value | Contains page number.

## Methods

Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetContentElements | Returns all content elements. (Overrides FieldGetContentElements)
GetHashCode | (Inherited from Object)
GetParent | Returns the parent element. (Inherited from Field)
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current PageNumber object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf.Fields Namespace