SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the cell's background gradient fill orientation.
Get
VB.NET | Style = object.BackColorOrientation As SftTreeOrientationDefaultConstants |
VB | Style = object.BackColorOrientation As SftTreeOrientationDefaultConstants |
C#.NET | SftTreeOrientationDefaultConstants Style = object.BackColorOrientation; |
VC++ | enum SftTreeOrientationDefaultConstants Style = object->BackColorOrientation; enum SftTreeOrientationDefaultConstants Style = object->GetBackColorOrientation(); |
C | HRESULT object->get_BackColorOrientation(enum SftTreeOrientationDefaultConstants* Style); |
Put
VB.NET | object.BackColorOrientation = Style As SftTreeOrientationDefaultConstants |
VB | object.BackColorOrientation = Style As SftTreeOrientationDefaultConstants |
C#.NET | SftTreeOrientationDefaultConstants object.BackColorOrientation = Style; |
VC++ | enum SftTreeOrientationDefaultConstants object->BackColorOrientation = Style; void object->PutBackColorOrientation(enum SftTreeOrientationDefaultConstants Style); |
C | HRESULT object->put_BackColorOrientation(enum SftTreeOrientationDefaultConstants Style); |
object
A SftTreeCell object.
Style
Defines the cell's background gradient fill orientation.
Name | Value | Description |
---|---|---|
defaultOrientationSftTree | -1 | (Default) - The default orientation defined using Column.BackColorOrientation is used. |
horizontalDefaultOrientationSftTree | 0 | Horizontal - The gradient fill orientation is horizontal, starting at the left using Cell.BackColor and ending at the right edge of the cell using Cell.BackColorEnd (reversed when using RightToLeft rendering). |
verticalDefaultOrientationSftTree | 1 | Vertical - The gradient fill orientation is vertical, starting at the top using Cell.BackColor and ending at the bottom edge of the cell using Cell.BackColorEnd. |
The BackColorOrientation property defines the cell's background gradient fill orientation.
AxSftTree1.get_Cell(I, 0).ProgressColorOrientation = SftTreeOrientationDefaultConstants.verticalDefaultOrientationSftTree AxSftTree1.get_Cell(I, 0).ProgressStyle = SftTreeProgressStyleDefaultConstants.smallDefaultProgressStyleSftTree AxSftTree1.get_Cell(I, 0).ProgressColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.FromArgb(128, 128, 0)) And &HFFFFFFFF&) AxSftTree1.get_Cell(I, 0).ProgressColorEnd = Convert.ToUInt32(ColorTranslator.ToOle(Color.FromArgb(255, 255, 0)) And &HFFFFFFFF&) AxSftTree1.get_Cell(I, 0).ProgressMax = 150 ' maximum value 0-150 AxSftTree1.get_Cell(I, 0).ProgressValue = 40 ' current value AxSftTree1.get_Cell(I, 0).BackColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.FromKnownColor(KnownColor.Window)) And &HFFFFFFFF&) AxSftTree1.get_Cell(I, 0).BackColorEnd = Convert.ToUInt32(ColorTranslator.ToOle(Color.FromArgb(255, 0, 0)) And &HFFFFFFFF&) AxSftTree1.get_Cell(I, 0).BackColorOrientation = SftTreeOrientationDefaultConstants.horizontalDefaultOrientationSftTree ItemIndex = AxSftTree1.Items.Add("Supported Picture Types") AxSftTree1.get_Cell(ItemIndex, 1).Text = "SftTree/OCX supports numerous image types, such as GDI+, bitmaps, icons, ImageLists and also offers numerous built-in images.." ' add GDI+ samples
cellObj.ProgressColorOrientation = verticalDefaultOrientationSftTree cellObj.ProgressStyle = smallDefaultProgressStyleSftTree cellObj.ProgressColor = &H8080& cellObj.ProgressColorEnd = &HFFFF& cellObj.ProgressMax = 150 ' maximum value 0-150 cellObj.ProgressValue = 40 ' current value cellObj.BackColor = &H80000005 cellObj.BackColorEnd = &HFF& cellObj.BackColorOrientation = horizontalDefaultOrientationSftTree ' Picture Types ItemIndex = .Items.Add("Supported Picture Types") .Cell(ItemIndex, 1).Text = "SftTree/OCX supports numerous image types, such as GDI+ images, bitmaps, icons, ImageLists and also offers numerous built-in images." ' add GDI+ samples
axSftTree1.get_Cell(I, 0).ProgressColorOrientation = SftTreeOrientationDefaultConstants.verticalDefaultOrientationSftTree; axSftTree1.get_Cell(I, 0).ProgressStyle = SftTreeProgressStyleDefaultConstants.smallDefaultProgressStyleSftTree; axSftTree1.get_Cell(I, 0).ProgressColor = (uint) ColorTranslator.ToOle(Color.FromArgb(128, 128, 0)); axSftTree1.get_Cell(I, 0).ProgressColorEnd = (uint) ColorTranslator.ToOle(Color.FromArgb(255, 255, 0)); axSftTree1.get_Cell(I, 0).ProgressMax = 150; // maximum value 0-150 axSftTree1.get_Cell(I, 0).ProgressValue = 40; // current value axSftTree1.get_Cell(I, 0).BackColor = (uint) ColorTranslator.ToOle(Color.FromKnownColor(KnownColor.Window)); axSftTree1.get_Cell(I, 0).BackColorEnd = (uint)ColorTranslator.ToOle(Color.FromArgb(255, 0, 0)); axSftTree1.get_Cell(I, 0).BackColorOrientation = SftTreeOrientationDefaultConstants.horizontalDefaultOrientationSftTree; ItemIndex = axSftTree1.Items.Add("Supported Picture Types"); axSftTree1.get_Cell(ItemIndex, 1).Text = "SftTree/OCX supports numerous image types, such as GDI+, bitmaps, icons, ImageLists and also offers numerous built-in images."; // add GDI+ samples
m_vTree->Cell[i][0]->ProgressColorOrientation = verticalDefaultOrientationSftTree; m_vTree->Cell[i][0]->ProgressStyle = smallDefaultProgressStyleSftTree; m_vTree->Cell[i][0]->ProgressColor = RGB(128,128,0); m_vTree->Cell[i][0]->ProgressColorEnd = RGB(255,255,0); m_vTree->Cell[i][0]->ProgressMax = 150; // maximum value 0-150 m_vTree->Cell[i][0]->ProgressValue = 40; // current value m_vTree->Cell[i][0]->BackColor = 0x80000000L | COLOR_WINDOW; m_vTree->Cell[i][0]->BackColorEnd = RGB(255, 0, 0); m_vTree->Cell[i][0]->BackColorOrientation = horizontalDefaultOrientationSftTree; ItemIndex = m_vTree->Items->Add("Supported Picture Types"); m_vTree->Cell[ItemIndex][1]->Text = _T("SftTree/OCX supports numerous image types, such as GDI+, bitmaps, icons, ImageLists and also offers numerous built-in images."); // add GDI+ samples
See Also SftTreeCell Object | Object Hierarchy