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 AnnObjectBase class, that provide support for font, stroke and fill characteristics. These properties are listed below:
Fill Stroke StrokeDashArray StrokeDashCap StrokeDashOffset StrokeEndLineCap StrokeLineJoin StrokeMiterLimit StrokeStartLineCap StrokeThickness FontDecorations FontFamily FontSize FontStretch FontStyle FontWeight SupportsFill SupportsFont SupportsStroke
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 AnnObjectBase class:
Header HeaderBackground HeaderDecorations HeaderFontFamily 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. The Container property and the Group property, both inherited from the AnnObjectBase class, contain information on the container or the group to which the object belongs.
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.