RulerThumb
A draggable ruler marker that reports start, movement, and completion events for tab stops and indents.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class RulerThumb : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementRulerThumb...
Implements:
Inherited Members
Constructors
Initializes a ruler marker with its default eight-by-eight size.
public RulerThumb()
Initializes a ruler marker for the specified tab stop or indent.
public RulerThumb(RulerThumbType type)
The marker shape and interaction type.
Fields
Identifies the IsDragging dependency property.
public static readonly RadProperty IsDraggingProperty
Identifies the RulerThumbType dependency property.
public static readonly RadProperty TabStopTypeProperty
Identifies the ToolTipText dependency property.
public static readonly RadProperty ToolTipTextProperty
Properties
Gets whether the marker is currently in a drag operation.
public bool IsDragging { get; }
Gets or sets the marker type, which determines its shape and tab-stop tooltip.
public RulerThumbType RulerThumbType { get; set; }
Gets or sets the size returned from the marker's measure pass.
public SizeF ThumbSize { get; set; }
Gets or sets the tooltip text associated with the marker.
public string ToolTipText { get; set; }
Methods
Cancels an active drag, raises DragCompleted with its canceled flag set, and releases mouse capture.
public void CancelDrag()
Configures the marker's hit testing, padding, and rendering settings.
protected override void InitializeFields()
Overrides:
Updates the marker's tooltip and rendering settings after its template is applied.
public override void OnApplyTemplate()
Overrides:
Cancels an active drag if the marker loses mouse capture.
protected override void OnLostMouseCapture(MouseEventArgs e)
Overrides:
Starts dragging when the enabled marker is pressed while attached to a parent element.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Overrides:
Completes an active drag when the left mouse button is released.
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Overrides:
Reports pointer movement as drag deltas while the marker is being dragged.
Draws the marker shape associated with RulerThumbType using its current opacity.
protected override void PaintCore(IPaintingContext context)
Overrides:
Events
Occurs when a drag operation ends, including when it is canceled.
public event EventHandler<DragCompletedEventArgs> DragCompleted
Occurs when the marker moves during a drag operation.
public event EventHandler<DragDeltaEventArgs> DragDelta
Occurs when the marker begins a drag operation.
public event EventHandler<DragStartedEventArgs> DragStarted