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






    Margin Property (DicomLabel)
    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
    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