ASP.NET Pack Programmer's Guide
Ruler Members
Constructors 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 Methods

  Name Description

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.

getBackColor

Gets the background color of the control.

getEnableGuides

Gets a value indicating whether the alignment guides are enabled.

getForeColor

Gets the foreground color of the control.

getGuideColor

Gets the color of the alignment guide lines.

getHorizontalScaleVisible

Gets a value iindicating whether the horizontal ruler scale is visible.

getNegatedX

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

getNegatedY

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

getPointerColor

Gets the color of the mouse pointer's projections.

getProjectionColor

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

getProjectRotatedBounds

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

getTextColor

Gets the color used to paint text in the ruler.

getUnit

Gets the measure units displayed in the ruler scales.

getVerticalScaleVisible

Gets a value iindicating whether the vertical ruler scale is visible.

registerForSubmit

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

setBackColor

Sets the background color of the control.

setDiagram

Sets the Diagram attached to this Ruler.

setEnableGuides

Sets a value indicating whether the alignment guides are enabled.

setForeColor

Sets the foreground color of the control.

setGuideColor

Sets the color of the alignment guide lines.

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 of the mouse pointer's 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 text in the ruler.

setUnit

Sets the measure units displayed in the ruler scales.

setVerticalScaleVisible

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

 See Also

Ruler Class
MindFusion.Diagramming Namespace