Skip to main content

DragOverEventArgs.InsertIndicatorLocation Property

Gets or sets the location of the default insert indicator.

Namespace: DevExpress.Utils.DragDrop

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public Point InsertIndicatorLocation { get; set; }

Property Value

Type Description
Point

A Point structure that specifies the location of the default insert indicator.

Remarks

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.

Handle the DragDropEvents.DragOver event to customize the insert indicator.

The default insert indicator is a semi-transparent rectangle.

Insert Indicator

The InsertIndicatorLocation and InsertIndicatorSize event arguments allow you to customize its size and position.

You can also use the InsertIndicator event argument to display a custom image.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InsertIndicatorLocation 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