Returns or sets a font object's properties. Applies to all text annotation types.
Image Annotation Tool Button control, Image Edit control
object.AnnotationFont
Font object
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 |
Italic | Boolean | True -- Selects 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 |
StrikeThrough | Boolean | True -- Selects 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
Annotation topics in Imaging Concepts
AnnotationType property
GetSelectedAnnotationFont method
SetSelectedAnnotationFont method