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






In This Topic
    Anchor Property (DicomLabel)
    In This Topic
    A pair of coordinates (x, y) of an visible anchor point for a text label
    Syntax
    'Declaration
     
    
    Public Property Anchor As System.Drawing.PointF
    'Usage
     
    
    Dim instance As DicomLabel
    Dim value As System.Drawing.PointF
     
    instance.Anchor = value
     
    value = instance.Anchor
    public System.Drawing.PointF Anchor {get; set;}
    public read-write property Anchor: System.Drawing.PointF; 
    public function get,set Anchor : System.Drawing.PointF
    public: __property System.Drawing.PointF get_Anchor();
    public: __property void set_Anchor( 
       System.Drawing.PointF value
    );
    public:
    property System.Drawing.PointF Anchor {
       System.Drawing.PointF get();
       void set (    System.Drawing.PointF value);
    }
    Remarks

    Anchor comprises the x and y coordinates, which are now floating numbers in .NET version, and only applies to text labels.

    If ShowAnchor is true, then a line is drawn from the border of the text label to a point in the image indicated by these coordinates.

    If AnchorScaleMode is set to Image, then the anchor point is transformed with the image exactly the same way that the label itself is if ScaleMode is set to Image.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also