The polyruler annotation object (AnnPolyRulerObject) is an array of points that creates a sequence of joined rulers. The polyruler can be used to measure the distance of an irregularly shaped object.
Programmatically, the boundaries and location of the polyruler object can be controlled using the following properties:
The AnnPolyrulerObject class inherits a number of properties from the AnnObjectBase class that provide support for font, pen and brush 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 name of the polyruler 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
The following properties may be used in transforming a polyruler annotation object:
The AnnPolyrulerObject class implements the IAnnRulerObject interface. This interface provides a number of ruler properties that control certain aspects of the rulers themselves and indicate which characteristics will be displayed on the ruler. These properties are listed below:
GaugeLength MeasurementUnit Precision IsRulerImplemented ShowGauge ShowLength ShowTickMarks TickMarksLength UnitAbbreviation
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.
The following properties can also be used to programmatically set characteristics of an AnnPolyrulerObject class object:
For more information about the automated polyruler annotation object, refer to WPF Annotation Objects - Automated Features and WPF Automated Annotations - Ruler Tab.