Click or drag to resize

TreeGridViewDragInfoRestrictToNode Method

Restricts the drop to an item or a child within the specified number of levels.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public bool RestrictToNode(
	Object item,
	int childLevels = -1
)

Parameters

item
Type: SystemObject
Item to restrict the drop to, or any of its children
childLevels (Optional)
Type: SystemInt32
Number of child levels to allow, or -1 to allow any number of levels

Return Value

Type: Boolean
True if the drag was restricted, or false if the user is already dragging over the specified item or its children.
See Also