Class PageSetup
Represents page Setup settings of a page in a document.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.DLS
Assembly: Syncfusion.DLS.Base.dll
Syntax
public class PageSetup : XDLSSerializableBase, IEntityBase, IXDLSSerializable
Constructors
PageSetup(IDocument)
Creates PageSetup object for specified document.
Declaration
public PageSetup(IDocument doc)
Parameters
Type | Name | Description |
---|---|---|
IDocument | doc |
Fields
m_fFooterDistance
Declaration
protected float m_fFooterDistance
Field Value
Type |
---|
System.Single |
m_fHeaderDistance
Declaration
protected float m_fHeaderDistance
Field Value
Type |
---|
System.Single |
Properties
ClientWidth
Gets width of client area.
Declaration
public float ClientWidth { get; }
Property Value
Type |
---|
System.Single |
DefaultTabWidth
Gets or sets the length of the auto tab.
Declaration
public float DefaultTabWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The length of the auto tab. |
DifferentFirstPage
Setting to specify that the current section has a different header/footer for first page.
Declaration
public bool DifferentFirstPage { get; set; }
Property Value
Type |
---|
System.Boolean |
DifferentOddAndEvenPages
True if the document has different headers and footers for odd-numbered and even-numbered pages.
Declaration
public bool DifferentOddAndEvenPages { get; set; }
Property Value
Type |
---|
System.Boolean |
FooterDistance
Gets / sets footer height in points.
Declaration
public float FooterDistance { get; set; }
Property Value
Type |
---|
System.Single |
Remarks
Not supported by Essential DPF
HeaderDistance
Gets / sets height of header in points.
Declaration
public float HeaderDistance { get; set; }
Property Value
Type |
---|
System.Single |
Remarks
Not supported by Essential DPF
Margins
Gets / sets page margins in points.
Declaration
public MarginsF Margins { get; set; }
Property Value
Type |
---|
MarginsF |
Orientation
Gets / sets orientation of a page.
Declaration
public PageOrientation Orientation { get; set; }
Property Value
Type |
---|
PageOrientation |
PageSize
Gets /sets page size in points.
Declaration
public SizeF PageSize { get; set; }
Property Value
Type |
---|
System.Drawing.SizeF |
VerticalAlignment
Gets / sets vertical alignment.
Declaration
public PageAlignment VerticalAlignment { get; set; }
Property Value
Type |
---|
PageAlignment |
Remarks
Not supported by Essential DPF
Methods
Clone(IDocument)
Clones itself.
Declaration
public virtual PageSetup Clone(IDocument doc)
Parameters
Type | Name | Description |
---|---|---|
IDocument | doc |
Returns
Type |
---|
PageSetup |
ReadXmlAttributes(IXDLSAttributeReader)
Declaration
protected override void ReadXmlAttributes(IXDLSAttributeReader reader)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeReader | reader |
Overrides
WriteXmlAttributes(IXDLSAttributeWriter)
Declaration
protected override void WriteXmlAttributes(IXDLSAttributeWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IXDLSAttributeWriter | writer |