Search
Ruler Methods
 


 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