DicomObjects.NetStandard Documentation
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 SKRectI 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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also