Skip to main content
A newer version of this page is available. .

DragDropBehaviorProperties.InsertIndicatorVisible Property

Gets or sets whether to display the indicator that shows the position in the target control where dragged elements will be inserted.

Namespace: DevExpress.Utils.DragDrop

Assembly: DevExpress.Utils.v19.1.dll

Declaration

[DefaultValue(true)]
[DXCategory("Customization")]
public bool InsertIndicatorVisible { get; set; }

Property Value

Type Default Description
Boolean **true**

true to show the insert indicator; otherwise, false.

Remarks

How to Disable the Insert Indicator

The DragDropManager.InsertIndicatorVisible setting allows you to disable the insert indicator for all controls. If this setting is enabled, you can disable a particular control’s insert indicator with the DragDropBehavior.Properties.InsertIndicatorVisible property.

How to Customize the Insert Indicator

To customize the insert indicator, handle the DragDropEvents.DragOver event.

The default insert indicator is a semi-transparent rectangle. The InsertIndicatorLocation and InsertIndicatorSize event arguments allow you to change its size and location.

You can also use the InsertIndicator event argument to provide a custom image instead of the default indicator.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InsertIndicatorVisible property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also