LEADTOOLS Medical (Leadtools.Dicom assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
CreateGraphicObject Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : CreateGraphicObject Method



graphicAnnSQItem
An item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".
graphicObject
Graphic 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.
graphicAnnSQItem
An item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".
graphicObject
Graphic 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 graphic annotation object. Supported in Silverlight, Windows Phone 7.

Syntax

Visual Basic (Declaration) 
Public Sub CreateGraphicObject( _
   ByVal graphicAnnSQItem As DicomElement, _
   ByVal graphicObject As DicomGraphicObject, _
   ByVal checkLayer As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim graphicAnnSQItem As DicomElement
Dim graphicObject As DicomGraphicObject
Dim checkLayer As Boolean
 
instance.CreateGraphicObject(graphicAnnSQItem, graphicObject, checkLayer)
C# 
public void CreateGraphicObject( 
   DicomElement graphicAnnSQItem,
   DicomGraphicObject graphicObject,
   bool checkLayer
)
C++/CLI 
public:
void CreateGraphicObject( 
   DicomElement^ graphicAnnSQItem,
   DicomGraphicObject^ graphicObject,
   bool checkLayer
) 

Parameters

graphicAnnSQItem
An item element under the "Graphic Annotation Sequence" (0070,0001) in the "Graphic Annotation Module".
graphicObject
Graphic 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 DicomDataSet.FindFirstGraphicAnnSQItem.

Remarks

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

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

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