Infragistics(R) NetAdvantage(R) Windows Forms
DragDropIndicatorSettings Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridOverride Class : DragDropIndicatorSettings Property

Gets a DragDropIndicatorsSettings instance which contains the custom settings for the drag-drop indicators

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property DragDropIndicatorSettings As Infragistics.Win.DragDropIndicatorSettings
C# 
public Infragistics.Win.DragDropIndicatorSettings DragDropIndicatorSettings {get;}

Example

Demonstrates how to set the image properties and Color property for the DragDropIndicatorSettings class.

Visual BasicCopy Code
Private Sub BtnSetDropIndicator_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSetDropIndicator.Click
    Me.UltraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.Color = Color.Green
    Me.UltraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.ImageTop = Image.FromFile("topImage.jpg")
    Me.UltraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.ImageBottom = Image.FromFile("bottomImage.jpg")
    Me.UltraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.ImageLeft = Image.FromFile("leftImage.jpg")
    Me.UltraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.ImageRight = Image.FromFile("rightImage.jpg")
End Sub
C#Copy Code
private void btnSetDropIndicator_Click(object sender, EventArgs e)
{
    this.ultraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.Color = Color.Green;
    this.ultraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.ImageTop = Image.FromFile("topImage.jpg");
    this.ultraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.ImageBottom = Image.FromFile("bottomImage.jpg");
    this.ultraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.ImageLeft = Image.FromFile("leftImage.jpg");
    this.ultraGrid1.DisplayLayout.Override.DragDropIndicatorSettings.ImageRight = Image.FromFile("rightImage.jpg");
}

See Also