ImageGear .NET v24.12 - Updated
MeasurementUnit Property (ImGearARTPolyRuler)




ImageGear24.Art Assembly > ImageGear.ART Namespace > ImGearARTPolyRuler Class : MeasurementUnit Property
Gets or sets the measurement unit of the PolyRuler.
Syntax
'Declaration
 
Public Property MeasurementUnit As ImGearARTMeasurementUnit
'Usage
 
Dim instance As ImGearARTPolyRuler
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 PolyRuler.

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

Reference

ImGearARTPolyRuler Class
ImGearARTPolyRuler Members
IImGearResolution Interface
Resolution Property
ImageResolution Property
DIB Property