Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
CreateTextObject Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : CreateTextObject Method




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.
Creates a new text annotation object.

Syntax

Visual Basic (Declaration) 
Public Sub CreateTextObject( _
   ByVal graphicAnnSQItem As DicomElement, _
   ByVal textObject As DicomTextObject, _
   ByVal checkLayer As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim graphicAnnSQItem As DicomElement
Dim textObject As DicomTextObject
Dim checkLayer As Boolean
 
instance.CreateTextObject(graphicAnnSQItem, textObject, checkLayer)
C# 
public void CreateTextObject( 
   DicomElement graphicAnnSQItem,
   DicomTextObject textObject,
   bool checkLayer
)
Managed Extensions for C++ 
public: void CreateTextObject( 
   DicomElement* graphicAnnSQItem,
   DicomTextObject* textObject,
   bool checkLayer
) 
C++/CLI 
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.

Example

For an example, refer to FindFirstGraphicAnnSQItem.

Remarks

When checkLayer is set to true, the method checks if the layer specified in LayerName exists or not. If it does not exist, the method will throw an exception.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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