HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

Cell Property, SftTreeItem Object

Returns a SftTreeCell object for a given cell.

Syntax

Get

VB.NETrefCellObj = object.Cell(ByVal ColIndex As Short) As SftTreeCell
VBSet refCellObj = object.Cell(ByVal ColIndex As Integer) As SftTreeCell
C#.NETSftTreeCell refCellObj = object.get_Cell(short ColIndex);
VC++ISftTreeCell* refCellObj = object->Cell[short ColIndex];
ISftTreeCell* refCellObj = object->GetCell(short ColIndex);
CHRESULT object->get_Cell(short ColIndex, ISftTreeCell** refCellObj);

object

A SftTreeItem object.

ColIndex

The zero-based column number of the cell to retrieve.

refCellObj

Returns a SftTreeCell object for a given cell.

Comments

The Cell property returns a SftTreeCell object for a given cell.

The SftTreeCell object represents one cell in a SftTree/OCX control. Numerous cell-specific properties and methods can be accessed using the returned object refCellObj.

A SftTreeCell object can also be obtained through the control's Cell property.

Certain default properties and behavior for cells can be defined using the SftTreeColumn object.

Examples

C#

            };
        }

        private void Form1_Load(object sender, EventArgs e) {

            String path = System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(System.IO.Path.GetDirectoryName(Application.ExecutablePath)));
            // Windows Media Player
            axWindowsMediaPlayer1.URL = path + "\\intermission.wmv";
            axSftTree1.get_Item(4).get_Cell(1).AttachContentWindow((int) axWindowsMediaPlayer1.Handle, SftTreeContentWindowStyleConstants.contentWindowSftTreeKeepSize);
            axSftTree1.get_Item(4).get_Cell(1).Text = "";

            // Web Browser
            webBrowser1.Navigate("https://softelvdm.com");
            SftTreeItem Item= axSftTree1.get_Item(5);
            SftTreeCell Cell = Item.get_Cell(1);
            Cell.AttachContentWindow((int)webBrowserPanel.Handle, SftTreeContentWindowStyleConstants.contentWindowSftTreeNone);

See Also SftTreeItem Object | Object Hierarchy


Last Updated 05/24/2026 - (email)
© 2026 Softel vdm, Inc.