Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcComboBox Class / SelectedIndex Property


In This Topic
    SelectedIndex Property (GcComboBox)
    In This Topic
    Gets or sets the displayed index of the selected item. This is a dependency property.
    Syntax
    'Declaration
     
    <LocalizabilityAttribute(LocalizationCategory.NeverLocalize)>
    <BindableAttribute(True)>
    Public Property SelectedIndex As Integer
    'Usage
     
    Dim instance As GcComboBox
    Dim value As Integer
     
    instance.SelectedIndex = value
     
    value = instance.SelectedIndex
    [Localizability(LocalizationCategory.NeverLocalize)]
    [Bindable(true)]
    public int SelectedIndex {get; set;}

    Property Value

    The displayed index of the selected item. The default is -1.
    Exceptions
    ExceptionDescription
    The selected index is less than -1 or greater than Items count.
    Remarks
    SelectedIndex is the display index.
    See Also