LEADTOOLS Medical (Leadtools.Dicom assembly)

CreateTextObject Method

Show in webframe







An item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".
The text object attributes.
true to verify the existence of the layer to which the new object will be added (the method will fail if the layer does not exist); false to add the new object without verifying the existence of the layer.
Creates a new text annotation object.
Syntax
public void CreateTextObject( 
   DicomElement graphicAnnSQItem,
   DicomTextObject textObject,
   bool checkLayer
)
'Declaration
 
Public Sub CreateTextObject( _
   ByVal graphicAnnSQItem As DicomElement, _
   ByVal textObject As DicomTextObject, _
   ByVal checkLayer As Boolean _
) 
'Usage
 
Dim instance As DicomDataSet
Dim graphicAnnSQItem As DicomElement
Dim textObject As DicomTextObject
Dim checkLayer As Boolean
 
instance.CreateTextObject(graphicAnnSQItem, textObject, checkLayer)
public void CreateTextObject( 
   DicomElement graphicAnnSQItem,
   DicomTextObject textObject,
   bool checkLayer
)

            

            
 function Leadtools.Dicom.DicomDataSet.CreateTextObject( 
   graphicAnnSQItem ,
   textObject ,
   checkLayer 
)
public:
void CreateTextObject( 
   DicomElement^ graphicAnnSQItem,
   DicomTextObject^ textObject,
   bool checkLayer
) 

Parameters

graphicAnnSQItem
An item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".
textObject
The text object attributes.
checkLayer
true to verify the existence of the layer to which the new object will be added (the method will fail if the layer does not exist); false to add the new object without verifying the existence of the layer.
Remarks
When checkLayer is set to true, the method checks if the layer specified in textObject exists or not. If it does not exist, the method will throw an exception.
Example
For an example, refer to FindFirstGraphicAnnSQItem.
Requirements

Target Platforms

See Also

Reference

DicomDataSet Class
DicomDataSet Members
FindFirstGraphicAnnSQItem Method
CreateGraphicAnnSQItem Method
RemoveTextObject Method
GetTextObjectInformation Method
SetTextObjectInformation Method
GetTextObjectCount Method
RemoveAllTextObjects Method
GetTextObjElement Method

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features