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






In This Topic
    Margin Property (DicomLabel)
    In This Topic
    Defines a margin between text and it’s bounding box
    Syntax
    'Declaration
     
    
    Public Property Margin As System.Integer
    'Usage
     
    
    Dim instance As DicomLabel
    Dim value As System.Integer
     
    instance.Margin = value
     
    value = instance.Margin
    public System.int Margin {get; set;}
    public read-write property Margin: System.Integer; 
    public function get,set Margin : System.int
    public: __property System.int get_Margin();
    public: __property void set_Margin( 
       System.int value
    );
    public:
    property System.int Margin {
       System.int get();
       void set (    System.int value);
    }
    Remarks
    The bounding rectangle defined by Height and Width is reduced by this size on all four sides before text is drawn, leaving a clear margin around the text. If the AutoSizeMode property causes the size to be reduced, then the calculated box is automatically expanded to accommodate this margin.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also