Search
Ruler Members
Constructors Properties Methods
 


The Ruler control provides horizontal and vertical scales that help users measure diagram items.

The following tables list the members exposed by the Ruler type.

 Public Constructors

  Name Description

Ruler

Initializes a new instance of the Ruler class.

 Public Properties

  Name Description

ContextMenu

Gets or sets the context menu associated with the ruler.

DiagramView

Gets or sets the DiagramView document this ruler is associated with.

EnableGuides

Gets or sets a value indicating whether the alignment guides are enabled.

ForeColor

Gets or sets the foreground color of the ruler.

GuideColor

Gets or sets the color of the alignment guide lines.

HorizontalScaleAlignment

Gets or sets the alignment of the horizontal scale.

HorizontalScaleVisible

Gets or sets a value specifying whether the horizontal scale is visible.

NegatedX

Gets or sets whether the horizontal scale should show negated values, simulating that the coordinate system's X axis grows to the left.

NegatedY

Gets or sets whether the vertical scale should show negated values, simulating that the coordinate system's Y axis grows to the top.

PointerColor

Gets or sets the color of the mouse pointer's projections.

ProjectionColor

Gets or sets the color of the projections of the active node on the ruler scales.

ProjectRotatedBounds

Gets or sets whether the projection of nodes on ruler's scales rotates with them.

ShowIcon

Gets or sets a value indicating whether to show the icon between the horizontal and vertical scales.

Text

Gets or sets the text displayed in the ruler's corner button.

TextColor

Gets or sets the color used to paint text in the ruler.

Unit

Gets or sets the measure units displayed in the ruler scales.

VerticalScaleAlignment

Gets or sets the alignment of the vertical scale.

VerticalScaleVisible

Gets or sets a value indicating whether the vertical scale is visible.

 Protected Methods

  Name Description

Dispose

Control.Dispose override.

OnBackgroundImageChanged

Control.OnBackgroundImageChanged override.

OnFontChanged

Control.OnFontChanged override.

OnPaint

Control.OnPaint override.

OnRightToLeftChanged

Control.OnRightToLeftChanged override.

 See Also