ImgAnnotations User Control

ImgAnnotations Class Library

Annotations_EditStatus(ImgEdit.ImgAnnotations.Annotation_Type, _

Annotations.GraphicObject) Event

 

 Is raised when the edit annotation function is enabled and the annotation is double clicked.

 

[Visual Basic]

Public Shared Event Annotations_EditStatus( _

ByVal AnnotationType As ImgEdit.ImgAnnotations.Annotation_Type, _

ByVal Annotation As Annotations.GraphicObject)

 

Parameters

    AnnotationType

        The annotation type enumeration.

    Annotation

        The annotation graphic object.

   

Return Value

    None.

 

Example

[Visual Basic] The following example shows how to use the Annotations_EditStatus event.

 

[Visual Basic]

Private Sub ImgAnnotations_Annotations_EditStatus(ByVal AnnotationType As ImgEdit.ImgAnnotations.Annotation_Type, ByVal Annotation As Annotations.GraphicObject) Handles ImgAnnotations.Annotations_EditStatus

     Dim MyFont As New System.Drawing.Font("Arial", 26.25, _

     FontStyle.Bold, GraphicsUnit.Point, 0)

     If AnnotationType = ImgAnnotations.Annotation_Type.Note Then
          Dim ann As Annotations.TextGraphic = Annotation
          ann.FillColor = Color.Yellow
          ann.FillTransparency = 255
          ann.LineColor = Color.Green

          ann.LineWidth = 2
          ann.Color = Color.Black

          ann.Font = MyFont

          ann.Text = "Hello Annotations"

     End If

End Sub

 

Requirements

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista family.

Documentation Version 1.6