TableAdorner
Displays the table-movement handle and the outline used while dragging a table.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class TableAdorner : FrameworkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, ISupportDrop
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementUIElementFrameworkElementTableAdorner...
Implements:
Inherited Members
Constructors
Creates an adorner backed by a print-layout presenter and its table-adorner state.
public TableAdorner(DocumentPrintLayoutPresenter printPresenter, UILayerUpdateContext context, TableMovementUILayer movementLayer)
The print-layout presenter that owns the table being adorned.
contextUILayerUpdateContextThe viewport and layout information used to position the adorner.
movementLayerTableMovementUILayerThe table-movement layer associated with this adorner.
Creates an adorner backed by a web-layout presenter and its table-adorner state.
public TableAdorner(DocumentWebLayoutPresenter webPresenter, UILayerUpdateContext context, TableMovementUILayer movementLayer)
The web-layout presenter that owns the table being adorned.
contextUILayerUpdateContextThe viewport and layout information used to position the adorner.
movementLayerTableMovementUILayerThe table-movement layer associated with this adorner.
Creates an adorner with the supplied viewport context and movement layer, without associating a print or web presenter.
public TableAdorner(UILayerUpdateContext context, TableMovementUILayer movementLayer)
The viewport and layout information used to position the adorner.
movementLayerTableMovementUILayerThe table-movement layer associated with this adorner.
Fields
Gets or sets the transform that positions the table-movement handle relative to the viewport.
public TranslateTransform rectangleIconTranslate
Gets or sets the transform that positions the table outline relative to the viewport.
public TranslateTransform translateRectangleTransform
Properties
Gets or sets a table reference. The current adorner logic does not read this property.
public Table AssociatedTable { get; set; }
Gets or sets the cursor displayed over the movement handle.
public Cursor CursorType { get; set; }
Methods
Creates the movement handle and dashed table outline, then connects the handle's mouse events to drag operations.
protected override void CreateChildElements()
Overrides:
Moves the drag outline with the pointer, offsetting it by 12 pixels and clamping its top-left position against the current section bounds using the table's current size.
public void DragDelta(MouseEventArgs e)
The pointer event that supplies the current position.
Marks the table as being dragged and draws the four outline segments around its last measured size.
public void DragStarted(MouseButtonEventArgs e)
The mouse-button event associated with the drag start.
Collapses the movement visuals and invalidates the parent when their visibility changes.
public void Hide()
Shows the movement handle and positions it and the outline at the current table bounds relative to the viewport.
public void Show()
Shows the drag outline, captures the movement handle, and initializes the drag state.
public void StartDragging(MouseButtonEventArgs e)
The mouse-button event that initiated dragging.
Starts dragging with the stored mouse event and changes the adorner cursor to a hand.
public void StartTableAdornerDragging()
Releases mouse capture from the previously captured grid, if one is recorded, and clears that reference.
public void StopCapturing()
Hides the movement visuals and clears the presenter's table-dragging flag. This method does not reset the adorner's
IsDragging state; the drag event handlers manage that state separately.
public void StopTableAdornerDragging()