EditSelectedAnnotationText Method

Example-VB Example-VC++

Displays a dialog box containing the selected text annotation.  The dialog box enables end users to modify the text.

Available With

Ö Imaging for Windows Professional Edition V1.0, V1.1, and V2.0
Ö Imaging for Windows 95 and 98
Ö Imaging for Windows NT 4.0

Applies To

Image Edit control

Syntax

object.EditSelectedAnnotationText Left,Top

Arguments

Parameter Data Type Setting

Left Long The beginning horizontal position of the mark to be edited
Top Long The beginning vertical position of the mark to be edited

Return Value

None

Remarks

The annotation must be selected for this method to function.  Use the Select Annotations tool or the SelectAnnotationGroup method to select annotations.

The left and top coordinates of the annotation to be edited can be obtained from the MarkSelect event.

The EditingTextAnnotation event fires whenever the Image Edit control enters or exits Text Edit mode.

After invoking the EditSelectedAnnotationText method, the Save, SaveAs, or SavePage method must be invoked to save the altered annotation.

Invoking the EditSelectedAnnotationText method sets the ImageModified property to True.

This method functions with Text and Hyperlink annotation types.

Note: Hyperlink annotations are available with Imaging for Windows Professional Edition only.