ClassLayoutControlDraggableOverlay
Represents a control which overlays the RadLayoutControl when the last is put in customize mode.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LayoutControlDraggableOverlay : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlLayoutControlDraggableOverlay
Implements:
Inherited Members
Constructors
LayoutControlDraggableOverlay(RadLayoutControl)
Declaration
public LayoutControlDraggableOverlay(RadLayoutControl owner)
Parameters
owner
Properties
DragDropService
The LayoutControlDragDropService responsible for the drag operations in the control.
Declaration
public LayoutControlDragDropService DragDropService { get; }
Property Value
OverlayElement
Gets the main element of the control.
Declaration
public DraggableLayoutControlOverlayElement OverlayElement { get; }
Property Value
Owner
Gets the owning RadLayoutControl
Declaration
public RadLayoutControl Owner { get; }
Property Value
SelectedItems
Gets a collection of the selected items.
Declaration
public ReadOnlyCollection<DraggableLayoutControlItem> SelectedItems { get; }
Property Value
Methods
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
Overrides
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
Overrides
FindDraggableItem(LayoutControlItemBase)
Finds the associated DraggableLayoutControlItem of the specified LayoutControlItemBase.
Declaration
public DraggableLayoutControlItem FindDraggableItem(LayoutControlItemBase item)
Parameters
item
The specified item.
Returns
The associated draggable item.
GetItems()
Gets the items from all levels in the control.
Declaration
public IEnumerable<DraggableLayoutControlItem> GetItems()
Returns
IEnumerable<DraggableLayoutControlItem>
An enumeration to the items.
GetItems(DraggableLayoutControlOverlayElement)
Gets all items which are descendants of the specified parent element.
Declaration
public IEnumerable<DraggableLayoutControlItem> GetItems(DraggableLayoutControlOverlayElement overlayElement)
Parameters
overlayElement
DraggableLayoutControlOverlayElement
The parent element.
Returns
IEnumerable<DraggableLayoutControlItem>
An enumeration to the items.
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
Overrides
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
Overrides
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
e
Overrides
SelectItem(DraggableLayoutControlItem, bool)
Selects the specified item.
Declaration
public void SelectItem(DraggableLayoutControlItem item, bool extend)
Parameters
item
The item to select.
extend
If [true], item will be added to the current selection, otherwise only the specified item will be selected
SelectLayoutItem(LayoutControlItemBase)
Selects the specified item.
Declaration
public void SelectLayoutItem(LayoutControlItemBase item)
Parameters
item
The item to select.
SetPreviewRectangle(Rectangle)
Sets the bounds of the drag preview rectangle.
Declaration
public void SetPreviewRectangle(Rectangle rectangle)
Parameters
rectangle
The bounds.
StartDrag(LayoutControlItemBase)
Starts the LayoutControlDragDropService with the specified item as a drag context.
Declaration
public void StartDrag(LayoutControlItemBase item)
Parameters
item
The item to drag.
UpdatePreview()
Updates the preview of the underlying items.
Declaration
public void UpdatePreview()
UpdatePreview(bool)
Updates the preview of the underlying items.
Declaration
public void UpdatePreview(bool refreshElements)
Parameters
refreshElements
If [true], child elements will be reinitialized, if [false], only the snapshot of existing elements will be updated.