Search
Ruler Members
Constructors Properties Methods
 


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.

 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 control.

diagramView

Gets or sets the DiagramView shown by this Ruler.

element

Returns a reference to the control's DOM element. (Inherited from Control.)

enabled

Gets or sets whether mouse events are enabled. (Inherited from Control.)

enableGuides

Gets or sets a value indicating whether the alignment guides are enabled.

foreColor

Gets or sets the foreground color of the control.

guideColor

Gets or sets the color of the alignment guide lines.

horizontalScaleVisible

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

licenseLocation

Gets or sets the location of the license key file. (Inherited from Control.)

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 of the mouse pointer's projections.

projectionColor

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

projectRotatedBounds

Gets or sets whether projections of nodes on ruler's scales reflect their rotated boundaries.

textColor

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

unit

Gets the measure units displayed in the ruler scales.

verticalScaleVisible

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

 Public Methods

  Name Description

addEventListener

Registers a single event listener on the instance. (Inherited from Disposable.)

addHandlers

Adds an event listener to a DOM element. (Inherited from Control.)

clearHandlers

Removes all event listeners from a DOM element. (Inherited from Control.)

create

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.

find

Returns the specified Ruler object. This member is static and can be invoked without creating an instance of the class.

fromJson

Constructs a JavaScript object from a JSON string. (Inherited from Control.)

raiseEvent

Raises an event. (Inherited from Disposable.)

registerForSubmit

Registers an onsubmit handler for the Ruler's parent html form to flush postback data.

removeEventListener

Removes a single event listener attached to the instance. (Inherited from Disposable.)

toJson

Converts a JavaScript object to a JSON string. (Inherited from Control.)

 See Also