Xceed Grid for WinForms v4.3 Documentation
DefaultImageIndex Property (RowSelector)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > RowSelector Class : DefaultImageIndex Property
Gets or sets the index of the image to use by default.
Syntax
'Declaration
 
<TypeConverterAttribute("Xceed.Grid.Design.RowSelectorPaneImageIndexConverter,Xceed.Grid.v4.3.Design,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>
<EditorAttribute("System.Windows.Forms.Design.ImageIndexEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.Drawing.Design.UITypeEditor)>
<DescriptionAttribute("The index of the image to use by default.")>
<AmbientValueAttribute(-2147483648)>
<LocalizableAttribute(True)>
<CategoryAttribute("Appearance")>
Public Property DefaultImageIndex As Integer
'Usage
 
Dim instance As RowSelector
Dim value As Integer
 
instance.DefaultImageIndex = value
 
value = instance.DefaultImageIndex
[TypeConverter("Xceed.Grid.Design.RowSelectorPaneImageIndexConverter,Xceed.Grid.v4.3.Design,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]
[Editor("System.Windows.Forms.Design.ImageIndexEditor, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", System.Drawing.Design.UITypeEditor)]
[Description("The index of the image to use by default.")]
[AmbientValue(-2147483648)]
[Localizable(true)]
[Category("Appearance")]
public int DefaultImageIndex {get; set;}

Property Value

A value representing the index of the image to use by default. If -2 then the default image is used. If -1 then no image is to be used.
Remarks

If the IsDefaultImageIndexAmbient property returns true, then the value of the DefaultImageIndex property is inherited from its parent.

To reset the value of the DefaultImageIndex property to its default value, DefaultDefaultImageIndex, the ResetDefaultImageIndex method must be called.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RowSelector Class
RowSelector Members