property G2antt.SelBackColor as Color
Retrieves or sets a value that indicates the selection background color.

TypeDescription
Color A color expression that indicates the selection background color. Use the Add method to add new skins to the control. If you need to remove the skin appearance from a part of the control you need to reset the last 7 bits in the high significant byte of the color being applied to the background's part.

By default, the SelBackColor property applies the background color only to list area. Use the Chart.SelBackColor property to specify the background color for selected items in the chart area. Use the SelBackColor and SelForeColor properties to define the colors used for selected items. The control highlights the selected items only if the SelBackColor and BackColor properties have different values, and the SelForeColor and ForeColor properties have different values. Use the SelectCount property to get the number of selected items. Use the SelectedItem property to get the selected item. Use the SelectItem to select or unselect a specified item. Use the FocusItem property to get the focused item. The control fires the SelectionChanged event when user changes the selection. Use the SelectableItem property to specify the user can select an item. The SelBarColor property specifies the color to highlight the selected bars. The SelBackMode property specifies the way the selected items are shown in the control.

For instance, the following VB sample changes the visual appearance for the selected item. The SelBackColor property indicates the selection background color. Shortly, we need to add a skin to the Appearance object using the Add method, and we need to set the last 7 bits in the SelBackColor property to indicates the index of the skin that we want to use. The sample applies the "" to the selected item(s):

With G2antt1
    With .VisualAppearance
        .Add &H23, App.Path + "\selected.ebn"
    End With
    .SelForeColor = RGB(0, 0, 0)
    .SelBackColor = &H23000000
End With

The sample adds the skin with the index 35 ( Hexa 23 ), and applies to the selected item using the SelBackColor property.

The following C++ sample applies a new appearance to the selected item(s):

#include "Appearance.h"
m_g2antt.GetVisualAppearance().Add( 0x23, COleVariant(_T("D:\\Temp\\ExG2antt_Help\\selected.ebn")) );
m_g2antt.SetSelBackColor( 0x23000000 );
m_g2antt.SetSelForeColor( 0 );

The following VB.NET sample applies a new appearance to the selected item(s):

With AxG2antt1
    With .VisualAppearance
        .Add(&H23, "D:\Temp\ExG2antt_Help\selected.ebn")
    End With
    .SelForeColor = Color.Black
    .Template = "SelBackColor = 587202560"
End With

The VB.NET sample uses the Template property to assign a new value to the SelBackColor property. The 587202560 value represents &23000000 in hexadecimal. 

The following C# sample applies a new appearance to the selected item(s):

axG2antt1.VisualAppearance.Add(0x23, "D:\\Temp\\ExG2antt_Help\\selected.ebn");
axG2antt1.Template = "SelBackColor = 587202560";

The following VFP sample applies a new appearance to the selected item(s):

With thisform.G2antt1
    With .VisualAppearance
        .Add(35, "D:\Temp\ExG2antt_Help\selected.ebn")
    EndWith
    .SelForeColor = RGB(0, 0, 0)
    .SelBackColor = .587202560
EndWith

The 587202560 value represents &23000000 in hexadecimal. The 32 value represents &23 in hexadecimal