Class LayoutControlDraggableOverlay
Represents a control which overlays the RadLayoutControl when the last is put in customize mode.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class LayoutControlDraggableOverlay : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
LayoutControlDraggableOverlay(RadLayoutControl)
Declaration
public LayoutControlDraggableOverlay(RadLayoutControl owner)
Parameters
RadLayoutControl
owner
|
Properties
DragDropService
The LayoutControlDragDropService responsible for the drag operations in the control.
Declaration
public LayoutControlDragDropService DragDropService { get; }
Property Value
LayoutControlDragDropService
|
OverlayElement
Gets the main element of the control.
Declaration
public DraggableLayoutControlOverlayElement OverlayElement { get; }
Property Value
DraggableLayoutControlOverlayElement
|
Owner
Gets the owning RadLayoutControl
Declaration
public RadLayoutControl Owner { get; }
Property Value
RadLayoutControl
|
SelectedItems
Gets a collection of the selected items.
Declaration
public ReadOnlyCollection<DraggableLayoutControlItem> SelectedItems { get; }
Property Value
System.Collections.ObjectModel.ReadOnlyCollection<DraggableLayoutControlItem>
|
Methods
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Overrides
FindDraggableItem(LayoutControlItemBase)
Finds the associated DraggableLayoutControlItem of the specified LayoutControlItemBase.
Declaration
public DraggableLayoutControlItem FindDraggableItem(LayoutControlItemBase item)
Parameters
LayoutControlItemBase
item
The specified item. |
Returns
DraggableLayoutControlItem
The associated draggable item. |
GetItems()
Gets the items from all levels in the control.
Declaration
public IEnumerable<DraggableLayoutControlItem> GetItems()
Returns
System.Collections.Generic.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
DraggableLayoutControlOverlayElement
overlayElement
The parent element. |
Returns
System.Collections.Generic.IEnumerable<DraggableLayoutControlItem>
An enumeration to the items. |
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseMove(MouseEventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
System.Windows.Forms.PaintEventArgs
e
|
Overrides
ProcessCmdKey(ref Message, Keys)
Declaration
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
Parameters
System.Windows.Forms.Message
msg
|
System.Windows.Forms.Keys
keyData
|
Returns
System.Boolean
|
SelectItem(DraggableLayoutControlItem, Boolean)
Selects the specified item.
Declaration
public void SelectItem(DraggableLayoutControlItem item, bool extend)
Parameters
DraggableLayoutControlItem
item
The item to select. |
System.Boolean
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
LayoutControlItemBase
item
The item to select. |
SetPreviewRectangle(Rectangle)
Sets the bounds of the drag preview rectangle.
Declaration
public void SetPreviewRectangle(Rectangle rectangle)
Parameters
System.Drawing.Rectangle
rectangle
The bounds. |
StartDrag(LayoutControlItemBase)
Starts the LayoutControlDragDropService with the specified item as a drag context.
Declaration
public void StartDrag(LayoutControlItemBase item)
Parameters
LayoutControlItemBase
item
The item to drag. |
UpdatePreview()
Updates the preview of the underlying items.
Declaration
public void UpdatePreview()
UpdatePreview(Boolean)
Updates the preview of the underlying items.
Declaration
public void UpdatePreview(bool refreshElements)
Parameters
System.Boolean
refreshElements
If [true], child elements will be reinitialized, if [false], only the snapshot of existing elements will be updated. |