Note: This topic is for Document/Medical only.
The WPF annotation button object (AnnButtonObject) is an image of a standard Windows button that can be activated. with the automated functions, the user clicks and drags to specify the rectangle in the current window. After that a dialog box allows the user to enter the text for the button.
Programmatically, the boundaries and location of the button object can be controlled using the following properties:
The AnnButtonObject class inherits a number of properties from the AnnObject class, that provide support for font, stroke and fill characteristics. These properties are listed below:
The AnnButtonObject class inherits a number of text properties from the AnnTextObject class, that provide support for text alignment, margins, etc. These properties are listed below:
The name of the button object can be controlled using the following properties, inherited from the AnnObject class:
- Header
- HeaderBackground
- HeaderDecorations
- HeaderFontFamilyName
- HeaderFontSize
- HeaderFontStretch
- HeaderFontStyle
- HeaderFontWeight
- HeaderForeground
- HeaderOffset
- IsHeaderRestricted
- IsHeaderVisible
To transform a WPF Annotation button object, you can use the following properties:
An object can be part of a group annotation object or part of a container object. It cannot be part of both a group and a container at the same time.
To programmatically set the characteristics of an AnnButtonObject class object, you can use the following properties:
For more information about the automated button annotation object, refer to WPF Annotation Objects - Automated Features.