SetSelectedAnnotationFont Method

Example-VB Example-VC++

Sets a font object’s properties.  Applies to selected text annotations.

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.SetSelectedAnnotationFont Font

Argument

Parameter Data Type Setting

Font IFontDisp The properties of the font object

Return Value

None

Remarks

Use the SetSelectedAnnotationFont method to identify the specific font object whose properties you want to set.  The following list shows the properties you can set, along with their data types, descriptions, and defaults:

Property Data Type Description Default

Bold Boolean True Selects bold attribute
False Deselects bold attribute
False
Italic Boolean True Selects italic attribute
False Deselects italic attribute
False
Name String The desired font name MS San Serif
Size Single The desired font size in points (0 to 2048) 12
Underline Boolean True Selects underline attribute
False Deselects underline attribute
False
StrikeThrough Boolean True Selects strikethrough attribute
False Deselects strikethrough attribute
False

The SetSelectedAnnotationFont method is used with annotations of the following types:

Attach-a-Note

Invoking the SetSelectedAnnotationFont method sets the ImageModified property to True.

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