Class MeasureSize
The size type object with specified measurement units.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class MeasureSize : ICloneable, IServiceReferenceHolder, IPropertyContainer, IPropertyObserver, ISerializable
Constructors
MeasureSize()
Initializes a new instance of the MeasureSize class.
Declaration
public MeasureSize()
MeasureSize(MeasureSize)
Initializes a new instance of the MeasureSize class.
Declaration
public MeasureSize(MeasureSize src)
Parameters
Type | Name | Description |
---|---|---|
MeasureSize | src | The SRC. |
MeasureSize(SerializationInfo, StreamingContext)
Initializes a new instance of the MeasureSize class.
Declaration
public MeasureSize(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
MeasureSize(Single, MeasureUnits, Single, MeasureUnits)
Initializes a new instance of the MeasureSize class.
Declaration
public MeasureSize(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. |
MeasureSize(Single, Single)
Initializes a new instance of the MeasureSize class.
Declaration
public MeasureSize(float width, float height)
Parameters
Type | Name | Description |
---|---|---|
System.Single | width | The width. |
System.Single | height | The height. |
MeasureSize(String, Single, MeasureUnits, Single, MeasureUnits)
Initializes a new instance of the MeasureSize class.
Declaration
public MeasureSize(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. |
MeasureSize(String, Single, Single)
Initializes a new instance of the MeasureSize class.
Declaration
public MeasureSize(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. |
Fields
m_propertyObserver
Declaration
protected IPropertyObserver m_propertyObserver
Field Value
Type |
---|
IPropertyObserver |
Properties
DisplayName
Gets or sets the display name.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The display name. |
FullContainerName
Gets the full name of the container.
Declaration
public virtual string FullContainerName { get; }
Property Value
Type | Description |
---|---|
System.String | The full name of the container. |
Height
Gets or sets the height.
Declaration
protected float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The height. |
HistoryService
Gets the history service.
Declaration
protected HistoryManager HistoryService { get; }
Property Value
Type | Description |
---|---|
HistoryManager | The history service. |
Owner
Gets the owner.
Declaration
public View Owner { get; }
Property Value
Type | Description |
---|---|
View | The owner. |
PixelHeight
Gets the height of the pixel.
Declaration
public float PixelHeight { get; }
Property Value
Type | Description |
---|---|
System.Single | The height of the pixel. |
PixelWidth
Gets the width of the pixel.
Declaration
public float PixelWidth { get; }
Property Value
Type | Description |
---|---|
System.Single | The width of the pixel. |
PropertyObserber
Gets the property observer.
Declaration
protected IPropertyObserver PropertyObserber { get; }
Property Value
Type | Description |
---|---|
IPropertyObserver | The property observer. |
Width
Gets or sets the width.
Declaration
protected 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 virtual 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
public 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. |
GetPropertyContainerByName(String)
Gets the name of the property container.
Declaration
public virtual object GetPropertyContainerByName(string strPropertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | strPropertyName | Name of the property. |
Returns
Type | Description |
---|---|
System.Object | The object. |
GetSize(MeasureUnits)
Gets the size.
Declaration
public SizeF GetSize(MeasureUnits units)
Parameters
Type | Name | Description |
---|---|---|
MeasureUnits | units | The units. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | The size. |
OnPropertyChanged(String)
Called when property is changed.
Declaration
protected virtual void OnPropertyChanged(string strPropertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | strPropertyName | Property Name. |
OnPropertyChanged(String, String)
Called when property is changed.
Declaration
public void OnPropertyChanged(string strPropertyFullPath, string strPropertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | strPropertyFullPath | The full path. |
System.String | strPropertyName | The Name. |
OnPropertyChanging(String, Object)
Called when property is changing.
Declaration
protected virtual bool OnPropertyChanging(string strPropertyName, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | strPropertyName | The property name. |
System.Object | newValue | The new value. |
Returns
Type | Description |
---|---|
System.Boolean | true, if property changing. |
OnPropertyChanging(String, String, Object)
Called when property is changing.
Declaration
public bool OnPropertyChanging(string strPropertyFullPath, string strPropertyName, object oldValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | strPropertyFullPath | The full path. |
System.String | strPropertyName | The Name. |
System.Object | oldValue | The old value. |
Returns
Type | Description |
---|---|
System.Boolean | true, if property changing. |
RecordPropertyChanged(String)
Records the property changed.
Declaration
protected void RecordPropertyChanged(string strPropertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | strPropertyName | Name of the STR property. |
SetSize(Single, Single, MeasureUnits)
Sets the size.
Declaration
public void SetSize(float fWidth, float fHeight, MeasureUnits measureUnits)
Parameters
Type | Name | Description |
---|---|---|
System.Single | fWidth | Width of the f. |
System.Single | fHeight | Height of the f. |
MeasureUnits | measureUnits | The measure units. |
ToString()
Returns a System.String that represents the current System.Object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current System.Object. |
Overrides
UpdateServiceReferences(IServiceReferenceProvider)
Updates the service references from service provider.
Declaration
public virtual void UpdateServiceReferences(IServiceReferenceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IServiceReferenceProvider | provider | The service provider. |