Class PageScale
Use for configure model and nodes measure scale.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class PageScale : MeasureSize, ICloneable, IServiceReferenceHolder, IPropertyContainer, IPropertyObserver, ISerializable
Constructors
PageScale()
Initializes a new instance of the PageScale class.
Declaration
public PageScale()
PageScale(PageScale)
Initializes a new instance of the PageScale class.
Declaration
public PageScale(PageScale src)
Parameters
Type | Name | Description |
---|---|---|
PageScale | src | The SRC. |
PageScale(SerializationInfo, StreamingContext)
Initializes a new instance of the PageScale class.
Declaration
public PageScale(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
PageScale(Single, Single)
Initializes a new instance of the PageScale class.
Declaration
public PageScale(float pageScale, float drawingScale)
Parameters
Type | Name | Description |
---|---|---|
System.Single | pageScale | The page scale. |
System.Single | drawingScale | The drawing scale. |
PageScale(String, Single, MeasureUnits, Single, MeasureUnits)
Initializes a new instance of the PageScale class.
Declaration
public PageScale(string name, float pageScale, MeasureUnits pageUnit, float drawingScale, MeasureUnits drawingUnit)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Single | pageScale | The page scale. |
MeasureUnits | pageUnit | The page unit. |
System.Single | drawingScale | The drawing scale. |
MeasureUnits | drawingUnit | The drawing unit. |
PageScale(String, Single, Single)
Initializes a new instance of the PageScale class.
Declaration
public PageScale(string name, float pageScale, float drawingScale)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
System.Single | pageScale | The page scale. |
System.Single | drawingScale | The drawing scale. |
Properties
DrawingScale
Gets or sets the drawing scale.
Declaration
public float DrawingScale { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The drawing scale. |
DrawingScaleUnit
Gets or sets the drawing scale unit.
Declaration
public MeasureUnits DrawingScaleUnit { get; set; }
Property Value
Type | Description |
---|---|
MeasureUnits | The drawing scale unit. |
Height
Gets or sets the height.
Declaration
public float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The height. |
ModelScale
Gets or sets the model scale.
Declaration
public float ModelScale { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The model scale. |
ModelScaleUnit
Gets or sets the model scale unit.
Declaration
public MeasureUnits ModelScaleUnit { get; set; }
Property Value
Type | Description |
---|---|
MeasureUnits | The model scale unit. |
Width
Gets or sets the width.
Declaration
public float Width { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The width. |
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. |
Overrides
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type. System.Object.GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current System.Object. |
Overrides
GetScaleFactor(MeasureUnits)
Gets the scale factor.
Declaration
public float GetScaleFactor(MeasureUnits units)
Parameters
Type | Name | Description |
---|---|---|
MeasureUnits | units | The units. |
Returns
Type | Description |
---|---|
System.Single | The scale factor. |
GetScaleTransformation(MeasureUnits)
Gets the scale transformation.
Declaration
public Matrix GetScaleTransformation(MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
MeasureUnits | measureUnits | The measure units. |
Returns
Type | Description |
---|---|
System.Drawing.Drawing2D.Matrix | The matrix. |