DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomLabel Class / RulerSpacing Property






In This Topic
    RulerSpacing Property
    In This Topic
    Controls the approximate spacing of the minor ticks for a ruler label
    Syntax
    'Declaration
     
    
    Public Property RulerSpacing As System.Integer
    'Usage
     
    
    Dim instance As DicomLabel
    Dim value As System.Integer
     
    instance.RulerSpacing = value
     
    value = instance.RulerSpacing
    public System.int RulerSpacing {get; set;}
    public read-write property RulerSpacing: System.Integer; 
    public function get,set RulerSpacing : System.int
    public: __property System.int get_RulerSpacing();
    public: __property void set_RulerSpacing( 
       System.int value
    );
    public:
    property System.int RulerSpacing {
       System.int get();
       void set (    System.int value);
    }
    Remarks

    This value is measured in screen/output pixels. When drawing a ruler, DicomObjects first calculates the distance (in mm) corresponding to this number of output pixels. It then rounds it up to the next significant figure (1, 2 or 5 times a power of 10) and uses that as the minor tick spacing.

    The default value is 20

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also