Class MeasurementUnit<TUnit>
Represents a unit measurement.
Inheritance
System.Object
MeasurementUnit<TUnit>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public abstract class MeasurementUnit<TUnit>
Type Parameters
| Name |
|---|
| TUnit |
Constructors
MeasurementUnit()
Declaration
protected MeasurementUnit()
Methods
ToPixel(TUnit)
Used to convert the value from unit to pixel.
Declaration
public abstract double ToPixel(TUnit unit)
Parameters
| Type | Name | Description |
|---|---|---|
| TUnit | unit |
Returns
| Type |
|---|
| System.Double |
ToUnit(Double)
Used to convert the value from pixel to unit.
Declaration
public abstract TUnit ToUnit(double pixel)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | pixel |
Returns
| Type |
|---|
| TUnit |
Events
UnitChangedEvent
Notify the event when the UnitChanged.
Declaration
public abstract event UnitToUnitEventArgs<TUnit> UnitChangedEvent
Event Type
| Type |
|---|
| UnitToUnitEventArgs<TUnit> |