DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomPrint Class / AddAnnotation Method

ID of Annotation to be added

Text value of the annotation to be added







In This Topic
    AddAnnotation Method
    In This Topic
    Adds an Annotation to the Annotations collection
    Syntax
    'Declaration
     
    
    Public Sub AddAnnotation( _
       ByVal AnnotationID As System.Integer, _
       ByVal AnnotationString As System.String _
    ) 
    'Usage
     
    
    Dim instance As DicomPrint
    Dim AnnotationID As System.Integer
    Dim AnnotationString As System.String
     
    instance.AddAnnotation(AnnotationID, AnnotationString)
    public void AddAnnotation( 
       System.int AnnotationID,
       System.string AnnotationString
    )
    public procedure AddAnnotation( 
        AnnotationID: System.Integer;
        AnnotationString: System.String
    ); 
    public function AddAnnotation( 
       AnnotationID : System.int,
       AnnotationString : System.String
    );
    public: void AddAnnotation( 
       System.int AnnotationID,
       System.string* AnnotationString
    ) 
    public:
    void AddAnnotation( 
       System.int AnnotationID,
       System.String^ AnnotationString
    ) 

    Parameters

    AnnotationID

    ID of Annotation to be added

    AnnotationString

    Text value of the annotation to be added

    Remarks
    This is simply a shortcut way of adding items to the Annotations collection. See that property for more details of how annotations work in DicomObjects printing.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also