WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MeasurementUnit<TUnit> - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MeasurementUnit<TUnit>

    Represents a unit measurement.

    Inheritance
    System.Object
    MeasurementUnit<TUnit>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public abstract class MeasurementUnit<TUnit>
    Type Parameters
    Name Description
    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 Description
    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 Description
    TUnit

    Events

    UnitChangedEvent

    Notify the event when the UnitChanged.

    Declaration
    public abstract event UnitToUnitEventArgs<TUnit> UnitChangedEvent
    Event Type
    Type Description
    UnitToUnitEventArgs<TUnit>
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved