WPF

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

    Show / Hide Table of Contents

    Class MeasurementUnit

    Represents a unit measurement.

    Inheritance
    System.Object
    MeasurementUnit
    LengthUnit
    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

    Constructors

    MeasurementUnit()

    Declaration
    protected MeasurementUnit()

    Methods

    ToPixel(Double)

    Used to convert the value from unit to pixel.

    Declaration
    public abstract double ToPixel(double unit)
    Parameters
    Type Name Description
    System.Double unit
    Returns
    Type Description
    System.Double

    ToUnit(Double)

    Used to convert the value from pixel to unit.

    Declaration
    public abstract double ToUnit(double pixel)
    Parameters
    Type Name Description
    System.Double pixel
    Returns
    Type Description
    System.Double

    Events

    UnitChangedEvent

    Notify the event when the UnitChanged.

    Declaration
    public abstract event UnitToUnitEventHandler<double> UnitChangedEvent
    Event Type
    Type Description
    UnitToUnitEventHandler<System.Double>
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved