Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcListBox Class / ItemBackground Property


In This Topic
    ItemBackground Property (GcListBox)
    In This Topic
    Gets or sets the System.Windows.Media.Brush that is used to paint the background of item whose GrapeCity.Windows.InputMan.GcListBox.AlternationIndex is 0.
    Syntax
    'Declaration
     
    Public Property ItemBackground As Brush
    'Usage
     
    Dim instance As GcListBox
    Dim value As Brush
     
    instance.ItemBackground = value
     
    value = instance.ItemBackground
    public Brush ItemBackground {get; set;}

    Property Value

    The brush that is used to paint the background of item whose GrapeCity.Windows.InputMan.GcListBox.AlternationIndex is 0.
    Remarks
    The ItemBackground property is used to paint the background for all items in the control. However, if the AlternatingItemBackground property value is not a null reference (Nothing in Visual Basic), its value overrides the default background value for items whose GrapeCity.Windows.InputMan.GcListBox.AlternationIndex is 0.
    See Also