SelectedItemBackColor

Gets or sets the Background Color of the selected Item in the control.

Syntax
c#
public virtual Color SelectedItemBackColor { get; set; }

Property Value
Type: System.Drawing.Color
Default Value: System.Drawing.SystemColors.HighLight

Remarks
The SelectedItemBackColor can be set directly in the control or via the StyleController property of the control. When used directly in the control this propery has no effect if the StyleController property is set to a valid SGBEditStyleController object.

Examples

c#
// Change the SelectedItemBackColor property at runtime
public void SetCustomSelectedItemBackColor(SGBListBox control)
{
    if(control != null)
       control.SelectedItemBackColor = Color.Black;
}

vb.net
' Change the SelectedItemBackColor property at runtime
public void SetCustomSelectedItemBackColor(SGBListBox control)
{
    if(control != null)
       control.SelectedItemBackColor = Color.Black;
}

Known Issues
In order for the control to use the SelectedItemForeColor property effectively the control must have the DrawMode set to OwnerDrawFixed, otherwise this property is ignored. This issue will hopefully be fixed in a future version of the control.

Last edited Mar 29, 2010 at 11:55 AM by scottgblood, version 2

Comments

No comments yet.