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


In This Topic
    Items Property (GcComboBox)
    In This Topic
    Gets the collection used to generate the content of the GcComboBox.
    Syntax
    'Declaration
     
    Public ReadOnly Property Items As ObservableCollection(Of Object)
    'Usage
     
    Dim instance As GcComboBox
    Dim value As ObservableCollection(Of Object)
     
    value = instance.Items
    public ObservableCollection<object> Items {get;}
    Remarks
    You can add items to an GcComboBox by adding items to the Items property or by binding the ItemsSource property to a data collection. You can add objects of different types to Items. If ItemsSource is not a null reference (Nothing in Visual Basic), the items in the items property are read-only. You cannot add an object or change the objects in the Items property.
    Example
    The following code example demonstrates how to use Items property.
    See Also