The Ruler control provides horizontal and vertical scales that help users measure and align diagram items.
The following tables list the members exposed by the Ruler type.
Name | Description | |
---|---|---|
Initializes a new instance of the Ruler class. |
Name | Description | |
---|---|---|
Gets or sets the background color of the control. |
||
Gets or sets the DiagramView shown by this Ruler. |
||
Returns a reference to the control's DOM element. (Inherited from Control.) |
||
Gets or sets whether mouse events are enabled. (Inherited from Control.) |
||
Gets or sets a value indicating whether the alignment guides are enabled. |
||
Gets or sets the foreground color of the control. |
||
Gets or sets the color of the alignment guide lines. |
||
Gets or sets a value indicating whether the horizontal ruler scale is visible. |
||
Gets or sets whether the horizontal scale should show negated values, simulating that the coordinate system's X axis grows to the left. |
||
Gets or sets whether the vertical scale should show negated values, simulating that the coordinate system's Y axis grows to the top. |
||
Gets or sets the color of the mouse pointer's projections. |
||
Gets or sets the color used to paint the projection of the active node. |
||
Gets or sets whether projections of nodes on ruler's scales reflect their rotated boundaries. |
||
Gets or sets the color used to paint text in the ruler. |
||
Gets the measure units displayed in the ruler scales. |
||
Gets or sets a value indicating whether the vertical ruler scale is visible. |
Name | Description | |
---|---|---|
Registers a single event listener on the instance. (Inherited from Disposable.) |
||
Adds an event listener to a DOM element. (Inherited from Control.) |
||
Removes all event listeners from a DOM element. (Inherited from Control.) |
||
Creates and initializes a new Ruler from the specified element. This method is static and can be called without creating an instance of the class. |
||
Returns the specified Ruler object. This member is static and can be invoked without creating an instance of the class. |
||
Constructs a JavaScript object from a JSON string. (Inherited from Control.) |
||
Raises an event. (Inherited from Disposable.) |
||
Registers an onsubmit handler for the Ruler's parent html form to flush postback data. |
||
Removes a single event listener attached to the instance. (Inherited from Disposable.) |
||
Converts a JavaScript object to a JSON string. (Inherited from Control.) |