ImageGear .NET v25.2 - Updated
ImageGear.Art Assembly / ImageGear.ART Namespace / ImGearARTRuler Class / MeasurementUnit Property




In This Topic
    MeasurementUnit Property (ImGearARTRuler)
    In This Topic
    Gets or sets the measurement unit of the Ruler.
    Syntax
    'Declaration
     
    Public Property MeasurementUnit As ImGearARTMeasurementUnit
    'Usage
     
    Dim instance As ImGearARTRuler
    Dim value As ImGearARTMeasurementUnit
     
    instance.MeasurementUnit = value
     
    value = instance.MeasurementUnit
    public ImGearARTMeasurementUnit MeasurementUnit {get; set;}
    public: __property ImGearARTMeasurementUnit get_MeasurementUnit();
    public: __property void set_MeasurementUnit( 
       ImGearARTMeasurementUnit value
    );
    public:
    property ImGearARTMeasurementUnit MeasurementUnit {
       ImGearARTMeasurementUnit get();
       void set (    ImGearARTMeasurementUnit value);
    }

    Property Value

    ImGearARTMeasurementUnit value.
    Remarks
    The getter returns either instance of some predefined measurement unit, associated with currently initialized AspectNumeratorX, AspectDenominatorX, AspectNumeratorY and AspectDenominatorY values, or instance of the ImGearARTMeasurementUnit with Name equal to "Custom" and Aspect values, initialized from corresponding Aspect values of the Ruler.

    Note: The annotation must be added to the ImGearARTPage prior to using this property.

    Note: If the AspectKind is ImGearARTAspectKind.Absolute, please initialize Resolution prior to using this property, otherwise ImageGear.Core.ImGearException will be thrown. The resolution is necessary for initialization of Aspect properties in Absolute mode.

    See Also