AnnotationFont Property

Returns or sets a font object's properties. Applies to all text annotation types.

Applies To

Image Annotation Tool Button control, Image Edit control

Syntax

object.AnnotationFont

Data Type

Font object

Remarks

Use the AnnotationFont property of an object to identify the specific font object whose properties you want to use or set. The following list shows the properties you can use or 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


For example, the following code sets the properties of the font object identified by the AnnotationFont property of an Image Edit object:

Dim x As Font
Set x = Imgedit1.AnnotationFont
x.Bold = True
x.Italic = True
x.Name = "Arial"
x.SIZE = 16
x.Underline = True
x.StrikeThrough = True

The AnnotationFont property is used with the following annotation types:

Text

Attach-a-Note

Text From File

Text Stamp

See Also

Annotation topics in Imaging Concepts

AnnotationType property

GetSelectedAnnotationFont method

SetSelectedAnnotationFont method