Class TreeViewDragDropService
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class TreeViewDragDropService : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener
Constructors
TreeViewDragDropService(RadTreeViewElement)
Declaration
public TreeViewDragDropService(RadTreeViewElement owner)
Parameters
RadTreeViewElement
owner
|
Properties
DropHintColor
Declaration
public Color DropHintColor { get; set; }
Property Value
System.Drawing.Color
|
IsCopyingNodes
Declaration
protected virtual bool IsCopyingNodes { get; }
Property Value
System.Boolean
|
Owner
ShowDragHint
Gets or sets a value indicating whether drag hint should be shown.
Declaration
public bool ShowDragHint { get; set; }
Property Value
System.Boolean
|
ShowDropHint
Gets or sets a value indicating whether show drop hint should be shown.
Declaration
public bool ShowDropHint { get; set; }
Property Value
System.Boolean
|
Methods
CancelPreviewDragDrop(RadDropEventArgs)
Declaration
protected virtual bool CancelPreviewDragDrop(RadDropEventArgs e)
Parameters
RadDropEventArgs
e
|
Returns
System.Boolean
|
CanDragOver(DropPosition, TreeNodeElement)
Declaration
protected virtual bool CanDragOver(DropPosition dropPosition, TreeNodeElement targetNodeElement)
Parameters
DropPosition
dropPosition
|
TreeNodeElement
targetNodeElement
|
Returns
System.Boolean
|
CanShowDropHint(Point)
Declaration
protected virtual bool CanShowDropHint(Point mousePosition)
Parameters
System.Drawing.Point
mousePosition
|
Returns
System.Boolean
|
CanStart(Object)
Declaration
protected override bool CanStart(object context)
Parameters
System.Object
context
|
Returns
System.Boolean
|
Overrides
CreateTreeNode(RadTreeNode)
Creates a new tree node in the target RadTreeView using the information from the source tree.
Declaration
protected virtual RadTreeNode CreateTreeNode(RadTreeNode sourceTreeNode)
Parameters
RadTreeNode
sourceTreeNode
The source tree node. |
Returns
RadTreeNode
A new instance of RadTreeNode if successfull. |
DisposeHint()
Declaration
protected virtual void DisposeHint()
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
GetDraggedNodes(RadTreeNode)
Declaration
protected virtual List<RadTreeNode> GetDraggedNodes(RadTreeNode draggedNode)
Parameters
RadTreeNode
draggedNode
|
Returns
System.Collections.Generic.List<RadTreeNode>
|
GetDropPosition(Point, TreeNodeElement)
Declaration
protected DropPosition GetDropPosition(Point dropLocation, TreeNodeElement targetNodeElement)
Parameters
System.Drawing.Point
dropLocation
|
TreeNodeElement
targetNodeElement
|
Returns
DropPosition
|
GetSelectedNodes(RadTreeNode)
Declaration
protected virtual List<RadTreeNode> GetSelectedNodes(RadTreeNode draggedNode)
Parameters
RadTreeNode
draggedNode
|
Returns
System.Collections.Generic.List<RadTreeNode>
|
HandleMouseMove(Point)
Declaration
protected override void HandleMouseMove(Point mousePosition)
Parameters
System.Drawing.Point
mousePosition
|
Overrides
HideHintWindow()
Declaration
public void HideHintWindow()
IsDropTargetValid(ISupportDrop)
Declaration
protected override bool IsDropTargetValid(ISupportDrop dropTarget)
Parameters
ISupportDrop
dropTarget
|
Returns
System.Boolean
|
Overrides
OnPreviewDragDrop(RadDropEventArgs)
Declaration
protected override void OnPreviewDragDrop(RadDropEventArgs e)
Parameters
RadDropEventArgs
e
|
Overrides
OnPreviewDragHint(PreviewDragHintEventArgs)
Declaration
protected override void OnPreviewDragHint(PreviewDragHintEventArgs e)
Parameters
PreviewDragHintEventArgs
e
|
Overrides
OnPreviewDragHintWithDropPosition(TreeViewPreviewDragHintEventArgs)
Declaration
protected virtual void OnPreviewDragHintWithDropPosition(TreeViewPreviewDragHintEventArgs e)
Parameters
TreeViewPreviewDragHintEventArgs
e
|
OnPreviewDragOver(RadDragOverEventArgs)
Declaration
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
Parameters
RadDragOverEventArgs
e
|
Overrides
OnStarted()
OnStopped()
OnStopping(RadServiceStoppingEventArgs)
Declaration
protected override void OnStopping(RadServiceStoppingEventArgs e)
Parameters
RadServiceStoppingEventArgs
e
|
Overrides
PerformDragDrop(Point, TreeNodeElement, List<RadTreeNode>)
Declaration
protected virtual void PerformDragDrop(Point dropLocation, TreeNodeElement targetNodeElement, List<RadTreeNode> draggedNodes)
Parameters
System.Drawing.Point
dropLocation
|
TreeNodeElement
targetNodeElement
|
System.Collections.Generic.List<RadTreeNode>
draggedNodes
|
PerformDragDropCore(DropPosition, RadTreeNode, List<RadTreeNode>)
Declaration
protected virtual void PerformDragDropCore(DropPosition position, RadTreeNode targetNode, List<RadTreeNode> draggedNodes)
Parameters
DropPosition
position
|
RadTreeNode
targetNode
|
System.Collections.Generic.List<RadTreeNode>
draggedNodes
|
PerformStart()
PerformStop()
PrepareContext()
Declaration
protected override bool PrepareContext()
Returns
System.Boolean
|
Overrides
PrepareDragHint(TreeNodeElement)
Declaration
protected virtual void PrepareDragHint(TreeNodeElement nodeElement)
Parameters
TreeNodeElement
nodeElement
|
SetHintWindowPosition(Point)
Declaration
protected override void SetHintWindowPosition(Point mousePt)
Parameters
System.Drawing.Point
mousePt
|
Overrides
ShowHintWindow()
Declaration
public void ShowHintWindow()
UpdateHintPosition(Point)
Declaration
protected virtual void UpdateHintPosition(Point mousePosition)
Parameters
System.Drawing.Point
mousePosition
|