Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

BackColorOrientation Property, SftTreeCell Object

Defines the cell's background gradient fill orientation.

Syntax

Get

VB.NETStyle = object.BackColorOrientation As SftTreeOrientationDefaultConstants
VBStyle = object.BackColorOrientation As SftTreeOrientationDefaultConstants
C#.NETSftTreeOrientationDefaultConstants Style = object.BackColorOrientation;
VC++enum SftTreeOrientationDefaultConstants Style = object->BackColorOrientation;
enum SftTreeOrientationDefaultConstants Style = object->GetBackColorOrientation();
CHRESULT object->get_BackColorOrientation(enum SftTreeOrientationDefaultConstants* Style);

Put

VB.NETobject.BackColorOrientation = Style As SftTreeOrientationDefaultConstants
VBobject.BackColorOrientation = Style As SftTreeOrientationDefaultConstants
C#.NETSftTreeOrientationDefaultConstants object.BackColorOrientation = Style;
VC++enum SftTreeOrientationDefaultConstants object->BackColorOrientation = Style;
void object->PutBackColorOrientation(enum SftTreeOrientationDefaultConstants Style);
CHRESULT object->put_BackColorOrientation(enum SftTreeOrientationDefaultConstants Style);

object

A SftTreeCell object.

Style

Defines the cell's background gradient fill orientation.

NameValueDescription
defaultOrientationSftTree-1(Default) - The default orientation defined using Column.BackColorOrientation is used.
horizontalDefaultOrientationSftTree0Horizontal - 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).
verticalDefaultOrientationSftTree1Vertical - 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.

Comments

The BackColorOrientation property defines the cell's background gradient fill orientation.

Examples

VB.NET

        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

VB6

        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

C#

            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

C++

    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


Last Updated 08/13/2020 - (email)
© 2021 Softel vdm, Inc.