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


In This Topic
    AlternatingItemBackground 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 1.
    Syntax
    'Declaration
     
    Public Property AlternatingItemBackground As Brush
    'Usage
     
    Dim instance As GcListBox
    Dim value As Brush
     
    instance.AlternatingItemBackground = value
     
    value = instance.AlternatingItemBackground
    public Brush AlternatingItemBackground {get; set;}

    Property Value

    The brush that is used to paint the background of item whose GrapeCity.Windows.InputMan.GcListBox.AlternationIndex is 1.
    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 1.
    See Also