DicomObjects.NET.V8
DicomObjects Namespace / DicomLabel Class / Margin Property



In This Topic
    Margin Property
    In This Topic
    Defines a margin between text and it’s bounding box
    Syntax
    'Declaration
     
    Public Property Margin As Integer
    'Usage
     
    Dim instance As DicomLabel
    Dim value As Integer
     
    instance.Margin = value
     
    value = instance.Margin
    public int Margin {get; set;}
    public:
    property int Margin {
       int get();
       void set (    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 3.5 or higher

    See Also