Class MarginsF
Represents the page margins of the Word document.
Implements
Inherited Members
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.NET.dll
Syntax
public sealed class MarginsF : FormatBase, IXDLSSerializable
Constructors
MarginsF()
Initializes a new instance of MarginsF class.
Declaration
public MarginsF()
MarginsF(Single, Single, Single, Single)
Initializes a new instance of MarginsF class with the specified left, top, right and bottom margin values in points.
Declaration
public MarginsF(float left, float top, float right, float bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Single | left | The value for left margin in points. |
System.Single | top | The value for top margin in points. |
System.Single | right | The value for right margin in points. |
System.Single | bottom | The value for bottom margin in points. |
Properties
All
Gets or sets the value of all the four MarginsF on one call measured in points.
Declaration
public float All { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The float that specifies the margin values in points. |
Bottom
Gets or sets the bottom margin value in points.
Declaration
public float Bottom { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The float that specifies the bottom margin value in points. |
Left
Gets or sets the left margin value in points.
Declaration
public float Left { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The float that specifies the left margin value in points. |
Right
Gets or sets the right margin value in points.
Declaration
public float Right { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The float that specifies the right margin value in points. |
Top
Gets or sets the top margin value in points.
Declaration
public float Top { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The float that specifies the top margin value in points. |
Methods
Clone()
Creates a duplicate copy of the MarginsF instance.
Declaration
public MarginsF Clone()
Returns
Type | Description |
---|---|
MarginsF | The reference of the newly created MarginsF instance. |
GetDefValue(Int32)
Returns the default values.
Declaration
protected override object GetDefValue(int key)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key | The integer that specifies the key. |
Returns
Type | Description |
---|---|
System.Object | An object that specifies the default value. |