Class EditRuler
Represents Edit control's ruler.
public class EditRuler : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IEditRuler, IControl
- Inheritance
-
EditRuler
- Implements
Constructors
- EditRuler()
Initializes a new instance of the
EditRuler
with default settings.
Properties
- IndentBackColor
Gets or sets background color of indentation parts of the ruler.
- IsDragging
Indicates whether some of ruler indentation is in dragging state.
- MarkWidth
Gets or sets default distance between adjacent marks.
- Options
Gets or sets
RulerOptions
determining ruler behaviour.
- PageStart
Gets or sets beginning of the page part of the ruler.
- PageWidth
Gets or sets width, in pixels between left and right indentations indicating width of the page.
- RulerStart
Gets or sets position, in pixels, of left indentation specifying start of the page.
- RulerWidth
Gets or sets ruler width.
- Units
Gets or sets ruler measurement units.
- Vertical
Gets or sets a boolean value indicating whether ruler has vertical or horizontal direction.
Methods
- Assign(IEditRuler)
Copies the contents of another
IEditRuler
object.
- CancelDragging()
Cancels dragging operation.
- Dispose(bool)
Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.
- OnMouseDown(MouseEventArgs)
Raises the MouseDown event.
- OnMouseMove(MouseEventArgs)
Raises the MouseMove event.
- OnMouseUp(MouseEventArgs)
Raises the MouseUp event.
- OnPaint(PaintEventArgs)
Raises the Paint event.
- ResetIndentBackColor()
Resets the
IndentBackColor
to the default value.
- ResetOptions()
Resets the
Options
to the default value.
- ResetUnits()
Resets the
Units
to the default value.
- WndProc(ref Message)
Processes Windows messages.
Events
- Change
Occurs when some of ruler indentations has changed its position due to the dragging operation.