Spread Windows Forms 11.0 Product Documentation
ListSelectedItemStyle Property
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcComboBoxCellType Class : ListSelectedItemStyle Property
Gets an ItemStyleInfo value that indicates the color style of the selected item of the control.
Syntax
'Declaration
 
Public ReadOnly Property ListSelectedItemStyle As ItemStyleInfo
'Usage
 
Dim instance As GcComboBoxCellType
Dim value As ItemStyleInfo
 
value = instance.ListSelectedItemStyle
public ItemStyleInfo ListSelectedItemStyle {get;}

Property Value

The ItemStyleInfo value.
Remarks
This property used to customize the appearance of selected items.
Example
This example sets the ListSelectedItemStyle property.
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
gccombo.DropDownStyle = ComboBoxStyle.DropDownList;
gccombo.ListSelectedItemStyle.BackColor = Color.Red;
gccombo.Items.AddRange(new String[] { "Feta", "Havarti", "Swiss"});
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.DropDownStyle = ComboBoxStyle.DropDownList
gccombo.ListSelectedItemStyle.BackColor = Color.Red
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Swiss"})
FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
See Also

Reference

GcComboBoxCellType Class
GcComboBoxCellType Members