DiagramLite Programmer's Guide
Ruler Members
Constructors Fields 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 control.

 Public Fields

  Name Description

HorizontalOffsetProperty

Identifies the HorizontalOffset dependency property.

VerticalOffsetProperty

Identifies the VerticalOffset dependency property.

 Public Properties

  Name Description

Document

Gets or sets the Diagram object this ruler is associated with.

HorizontalOffset

Gets a value that contains the horizontal offset of the scrolled diagram.

HorizontalScaleAlignment

Gets or sets the alignment of the horizontal scale.

HorizontalScaleVisible

Specifies whether the horizontal ruler scale is visible.

InchDivisions

Gets or sets the number of minor divisions to show when Unit is set to Inch.

PointerColor

Gets or sets the color used to paint cursor projections.

ProjectionColor

Gets or sets the color used to paint the projection of the active node.

ProjectRotatedBounds

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

ScaleColor

Gets or sets the color used to paint the color of the ruler scales.

ShowIcon

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

Unit

Gets or sets the measure unit used by the ruler.

VerticalOffset

Gets a value that contains the vertical offset of the scrolled diagram.

VerticalScaleAlignment

Gets or sets the alignment of the vertical scale.

VerticalScaleVisible

Specifies whether the vertical ruler scale is visible.

 Public Methods

  Name Description

UpdateNodeProjection

Updates the active node's projection positions on the ruler scales.

 See Also

Ruler Class
MindFusion.Diagramming Namespace