Type | Description | |||
Color | A color expression that indicates the background color for child nodes of the selected nodes. 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. |
The following VB sample changes the visual appearance for the selected node. 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 node:
With XMLGrid1 With .VisualAppearance .Add &H22, App.Path + "\selected.ebn" End With .SelForeColor = RGB(0, 0, 0) .SelBackColor = .SelBackColor Or &H22000000 .SelBackColorChild = .BackColor .SelForeColorChild = vbBlack End With
The following C++ sample changes the visual appearance for the selected node:
#include "Appearance.h" m_xmlgrid.GetVisualAppearance().Add( 0x22, COleVariant(_T("D:\\Temp\\EXMLGrid.Help\\selected.ebn")) ); m_xmlgrid.SetSelBackColor( RGB(0,0,255) | 0x22000000 ); m_xmlgrid.SetSelForeColor( 0 ); m_xmlgrid.SetSelBackColorChild(m_xmlgrid.GetBackColor()); m_xmlgrid.SetSelForeColorChild( 0 );
The following VB.NET sample changes the visual appearance for the selected node:
With AxXMLGrid1 With .VisualAppearance .Add(&H22, "D:\Temp\EXMLGrid.Help\selected.ebn") End With .SelForeColor = Color.Black .Template = "SelBackColor = 587137024" .SelBackColorChild = .BackColor .SelForeColorChild = Color.Black End With
where the 587137024 value is the hexa representation of 0x22FF0000
The following C# sample changes the visual appearance for the selected node:
axXMLGrid1.VisualAppearance.Add(0x22, "d:\\temp\\EXMLGrid.Help\\selected.ebn"); axXMLGrid1.Template = "SelBackColor = 587137024"; axXMLGrid1.SelForeColorChild = Color.Black; axXMLGrid1.SelBackColorChild = axXMLGrid1.BackColor;
where the 587137024 value is the hexa representation of 0x22FF0000.
The following VFP sample changes the visual appearance for the selected node:
With thisform.XMLGrid1 With .VisualAppearance .Add(34, "D:\Temp\EXMLGrid.Help\selected.ebn") EndWith .SelForeColor = RGB(0, 0, 0) .SelBackColor = RGB(0,0,255) + 570425344 .SelBackColorChild = .BackColor .SelForeColorChild = RGB(0, 0, 0) EndWith