ASP.NET Pack Programmer's Guide
Ruler Members
Constructors Properties Methods
 


Provides horizontal and vertical scales that helps 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

BackColor

Gets or sets the background color of the ruler control.

ControlLoadedScript

Specifies the name of a JavaScript function that should be invoked when the Ruler client script is fully loaded.

DiagramView

Gets or sets the DiagramView instance attached to this Ruler.

EnableGuides

Gets or sets a value indicating whether alignment guides are active.

ForeColor

Gets or sets the foreground color of the control.

GuideColor

Gets or sets the color used to paint guides.

HorizontalScaleVisible

Gets or sets a value indicating whether the horizontal ruler 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 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.

TextColor

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

Unit

Gets or sets the measure unit used by the ruler.

VerticalScaleVisible

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

 Public Methods

  Name Description

LoadPostData

IPostBackDataHandler.LoadPostData implementation.

RaisePostDataChangedEvent

IPostBackDataHandler.RaisePostDataChangedEvent implementation.

RenderBeginTag

WebControl.RenderBeginTag override.

 Protected Methods

  Name Description

OnInit

WebControl.OnInit override.

OnPreRender

Control.OnPreRender override.

Render

WebControl.Render override.

RenderContents

WebControl.RenderContents override.

 See Also

Ruler Class
MindFusion.Diagramming.WebForms Namespace