ImageGear .NET
MeasurementUnit Property (ImGearARTRuler)




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

Reference

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

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback