Class HFPosition
The HFPosition class is used by the Essential Diagram printing system to specify the bounds used for drawing the header/footer. HeaderFooterBase Bounds
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class HFPosition : ISerializable, ICloneable
Constructors
HFPosition()
Initializes a new instance of the HFPosition class.
Declaration
public HFPosition()
HFPosition(SerializationInfo, StreamingContext)
Initializes a new instance of the HFPosition class.
Declaration
public HFPosition(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
Height
Gets or sets the header/footer height(In Hundreds of Inches).
Declaration
public float Height { get; set; }
Property Value
Type |
---|
System.Single |
Remarks
Applies only when the AutoBounds property is False.
LeftMargin
Gets or sets the left margin.
Declaration
public float LeftMargin { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The left margin. |
PageWidth
Gets or sets the width of the page.
Declaration
public float PageWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The width of the page. |
RealHeight
Gets or sets the height of the real.
Declaration
public float RealHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The height of the real. |
RealWidth
Gets or sets the width of the real.
Declaration
public float RealWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The width of the real. |
RightMargin
Gets or sets the right margin.
Declaration
public float RightMargin { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The right margin. |
Width
Gets or sets the header or footer width(In Hundreds of Inches).
Declaration
public float Width { get; set; }
Property Value
Type |
---|
System.Single |
Remarks
Applies only when the AutoBounds property is False.
XLocation
Gets or sets the X location.
Declaration
public float XLocation { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The X location. |
YLocation
Gets or sets the Y location.
Declaration
public float YLocation { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The Y location. |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
protected virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |
ResetWidth()
Resets the width.
Declaration
protected void ResetWidth()
ShouldSerializeWidth()
Check if should to serialize the width.
Declaration
protected bool ShouldSerializeWidth()
Returns
Type | Description |
---|---|
System.Boolean | true, if serialize width. |
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |