menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MeasurementUnit - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MeasurementUnit

    Represents a unit measurement.

    Inheritance
    System.Object
    MeasurementUnit
    LengthUnit
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.UWP.dll
    Syntax
    public abstract class MeasurementUnit : Object

    Constructors

    MeasurementUnit()

    Declaration
    protected MeasurementUnit()

    Methods

    add_UnitChangedEvent(UnitToUnitEventHandler<Double>)

    Declaration
    public abstract void add_UnitChangedEvent(UnitToUnitEventHandler<double> value)
    Parameters
    Type Name Description
    UnitToUnitEventHandler<System.Double> value

    remove_UnitChangedEvent(UnitToUnitEventHandler<Double>)

    Declaration
    public abstract void remove_UnitChangedEvent(UnitToUnitEventHandler<double> value)
    Parameters
    Type Name Description
    UnitToUnitEventHandler<System.Double> value

    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
    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
    System.Double

    Events

    UnitChangedEvent

    Notify the event when the UnitChanged.

    Declaration
    public abstract event UnitToUnitEventHandler<double> UnitChangedEvent
    Event Type
    Type
    UnitToUnitEventHandler<System.Double>

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved