Defines the style used to display the drop target of a drag & drop operation.
Get
| C# | SftTreeDropHighlightStyleConstants Style = object.DropHighlightStyle; |
| VB.NET | Style = object.DropHighlightStyle As SftTreeDropHighlightStyleConstants |
| C++ | enum SftTreeDropHighlightStyleConstants Style = object->DropHighlightStyle; enum SftTreeDropHighlightStyleConstants Style = object->GetDropHighlightStyle(); |
| C | HRESULT object->get_DropHighlightStyle(enum SftTreeDropHighlightStyleConstants* Style); |
| VB | Style = object.DropHighlightStyle As SftTreeDropHighlightStyleConstants |
Put
| C# | SftTreeDropHighlightStyleConstants object.DropHighlightStyle = Style; |
| VB.NET | object.DropHighlightStyle = Style As SftTreeDropHighlightStyleConstants |
| C++ | enum SftTreeDropHighlightStyleConstants object->DropHighlightStyle = Style; void object->PutDropHighlightStyle(enum SftTreeDropHighlightStyleConstants Style); |
| C | HRESULT object->put_DropHighlightStyle(enum SftTreeDropHighlightStyleConstants Style); |
| VB | object.DropHighlightStyle = Style As SftTreeDropHighlightStyleConstants |
object
A SftTreeItems object.
Style
Defines the style used to display the drop target of a drag & drop operation.
| Style | Value | Description |
|---|---|---|
| dropSftTreeCaret | 0 | The drag & drop target is the current item. The Items.Current property is updated and set to the drop target. The drop target becomes the new current item. The target item is not selected, so even in a single selection tree control (see Items.MultiSelect property), the Items.Current property value and the Items.Selection property value are not identical. |
| dropSftTreeOnTop | 1 | The drag & drop target is highlighted using the color defined using the Items.DropHighlightColor property. The color is used as background color for the target item. The Items.Current property is not updated. |
| dropSftTreeBetween | 2 | The drag & drop target is highlighted using a solid line drawn using the color defined by the Items.DropHighlightColor property. The line is drawn before the target item, interpreting the Items.DropHighlight property as the insertion point. The Items.Current property is not updated. |
The DropHighlightStyle property defines the style used to display the drop target of a drag & drop operation.
The Items.SelectStyle and Items.NoFocusStyle properties work in conjunction with the Items.OutlineStyle property to determine the exact appearance of drop target items. The highlighted portion of a drop target is rendered using the outline style defined by the Items.OutlineStyle property.
See Also SftTreeItems Object | Object Hierarchy