Search
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

Overloaded.  

 Public Properties

  Name Description

AddScriptReferences

Gets or sets a value indicating whether the control should render references to the client scripts.

BackColor

Gets or sets the background color of the Ruler control.

ClientScriptLocation

Gets or sets the URL to the MindFusion.Diagramming.js file.

DiagramView

Gets or sets the id of the DiagramView.

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.

Id

Gets or sets the id of the view.

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

ControlLoadedScript

Sets the name of a JavaScript function that should be invoked when the control is loaded on the client side.

FromJson

Overloaded.  

FromRequest

Overloaded.  

Init

Renders the Ruler's initializing scripts on a web page under the specified function name.

LoadFromJson

Loads the specified JSON data.

Render

Renders the Ruler on a web page.

SaveToJson

Serializes the Ruler's data to JSON.

SetAddScriptReferences

Sets a value indicating whether the control should render references to the client scripts.

SetBackColor

Sets the background color of the Ruler control.

SetDiagramView

Sets the id of the DiagramView.

SetEnableGuides

Sets a value indicating whether alignment guides are active.

SetForeColor

Sets the foreground color of the control.

SetGuideColor

Sets the color used to paint guides.

SetHorizontalScaleVisible

Sets a value indicating whether the horizontal ruler scale is visible.

SetNegatedX

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

SetNegatedY

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

SetPointerColor

Sets the color used to paint cursor projections.

SetProjectionColor

Sets the color used to paint the projection of the active node.

SetProjectRotatedBounds

Sets whether the projection of nodes on ruler's scales rotates with them.

SetTextColor

Sets the color used to paint texts in the ruler.

SetUnit

Sets the measure unit used by the ruler.

SetVerticalScaleVisible

Sets a value indicating whether the vertical ruler scale is visible.

ToJson

Serializes the Ruler's data to JSON.

 See Also