Working with the DicomTextObjectAttributes Object
The TextObjectAttributes property returns a reference to the DicomTextObjectAttributes object. This object exposes the IDicomTextObjectAttributes interface which defines the following properties to describe a text annotation object:
AnchorPointUnits property: This property specifies the value of the "Anchor Point Annotation Units" (0070,0004) element (for example, DICOM_UNIT_PIXEL).
AnchorPointUsed property: This property indicates whether the values specified by the AnchorPointX property and the AnchorPointY property are valid. The AnchorPointX property and the AnchorPointY property are ignored unless the AnchorPointUsed property is set to VARIANT_TRUE.
AnchorPointVisible property: This property specifies the value of the "Anchor Point Visibility" (0070,0015) element (for example, VARIANT_TRUE).
AnchorPointX property: This property is the x-coordinate (horizontal offset) specified by the "Anchor Point" (0070,0014) element.
AnchorPointY property: This property is the y-coordinate (vertical offset) specified by the "Anchor Point" (0070,0014) element.
BoundingBoxBRHCornerX property: This property is the x-coordinate (horizontal offset) specified by the "Bounding Box Bottom Right Hand Corner" (0070,0011) element.
BoundingBoxBRHCornerY property: This property is the y-coordinate (vertical offset) specified by the "Bounding Box Bottom Right Hand Corner" (0070,0011) element.
BoundingBoxTextJustification property: This property specifies the value of the "Bounding Box Text Horizontal Justification" (0070,0012) element (for example, DICOM_TEXT_JUSTIFICATION_LEFT).
BoundingBoxTLHCornerX property: This property is the x-coordinate (horizontal offset) specified by the "Bounding Box Top Left Hand Corner" (0070,0010) element.
BoundingBoxTLHCornerY property: This property is the y-coordinate (vertical offset) specified by the "Bounding Box Top Left Hand Corner" (0070,0010) element.
BoundingBoxUnits property: This property specifies the value of the "Bounding Box Annotation Units" (0070,0003) element (for example, DICOM_UNIT_PIXEL).
BoundingBoxUsed property: This property indicates whether the values specified by the BoundingBoxBRHCornerX property, the BoundingBoxBRHCornerY property, the BoundingBoxTLHCornerX property, and the BoundingBoxTLHCornerY property are valid.
LayerName property: This property specifies the value of the "Graphic Layer" (0070,0002) element.
TextValue property: This property specifies the value of the "Unformatted Text Value" (0070,0006) element.