NetDiagram Programmer's Guide
Ruler Class
Remarks See Also
 





Provides horizontal and vertical scales that helps users measure diagram items.

Namespace: MindFusion.Diagramming.WebForms
Package: MindFusion.Diagramming.WebForms

 Syntax

C#  Copy Code

public class Ruler : Panel, IPostBackDataHandler

Visual Basic  Copy Code

Public Class Ruler
    Inherits Panel
    Implements IPostBackDataHandler

 Remarks

The ruler tracks mouse movements and modifications being performed on an item, and displays markers over the scales indicating the current position in diagram's coordinate system. The colors of these markers can be changed using the PointerColor and ProjectionColor properties.

If EnableGuides is set to true, the ruler allows aligning several items by clicking on a scale and dragging. That displays alignment guides which follow the mouse pointer and move all selected items on their way. If no diagram elements are selected, all items are moved.

 Inheritance Hierarchy

System.Object
    System.Web.UI.Control
        System.Web.UI.WebControls.WebControl
            System.Web.UI.WebControls.Panel
                MindFusion.Diagramming.WebForms.Ruler

 See Also

Ruler Members
MindFusion.Diagramming.WebForms Namespace