Class PageSize
Use for configure virtual document size without any scaling.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class PageSize : MeasureSize, ICloneable, IServiceReferenceHolder, IPropertyContainer, IPropertyObserver, ISerializable
Constructors
PageSize()
Initializes a new instance of the PageSize class.
Declaration
public PageSize()
PageSize(PageSize)
Initializes a new instance of the PageSize class.
Declaration
public PageSize(PageSize src)
Parameters
Type | Name | Description |
---|---|---|
PageSize | src | The SRC. |
PageSize(SerializationInfo, StreamingContext)
Initializes a new instance of the PageSize class.
Declaration
public PageSize(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
PageSize(Single, MeasureUnits, Single, MeasureUnits)
Initializes a new instance of the PageSize class.
Declaration
public PageSize(float width, MeasureUnits widthUnit, float height, MeasureUnits heightUnit)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | The width. |
MeasureUnits | widthUnit | The width unit. |
System.Single | height | The height. |
MeasureUnits | heightUnit | The height unit. |
PageSize(Single, Single)
Initializes a new instance of the PageSize class.
Declaration
public PageSize(float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | The width. |
System.Single | height | The height. |
PageSize(String, Single, MeasureUnits, Single, MeasureUnits)
Initializes a new instance of the PageSize class.
Declaration
public PageSize(string name, float width, MeasureUnits widthUnit, float height, MeasureUnits heightUnit)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Single | width | The width. |
MeasureUnits | widthUnit | The width unit. |
System.Single | height | The height. |
MeasureUnits | heightUnit | The height unit. |
PageSize(String, Single, Single)
Initializes a new instance of the PageSize class.
Declaration
public PageSize(string name, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Single | width | The width. |
System.Single | height | The height. |
Properties
Height
Gets or sets the height.
Declaration
public float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The height. |
HeightMeasureUnit
Gets or sets the height measure unit.
Declaration
public MeasureUnits HeightMeasureUnit { get; set; }
Property Value
Type | Description |
---|---|
MeasureUnits | The height measure unit. |
Width
Gets or sets the width.
Declaration
public float Width { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The width. |
WidthMeasureUnit
Gets or sets the width measure unit.
Declaration
public MeasureUnits WidthMeasureUnit { get; set; }
Property Value
Type | Description |
---|---|
MeasureUnits | The width measure unit. |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |