Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

CellText Property, SftTree Object

Defines an item's cell text.

Deprecated - Provided for compatibility with earlier versions only - Use Cell.Text instead

Syntax

Get

VB.NETText = object.get_CellText(ByVal ItemIndex As Integer, ByVal ColIndex As Short) As String
VBText = object.CellText(ByVal ItemIndex As Long, ByVal ColIndex As Integer) As String
C#.NETstring Text = object.get_CellText(int ItemIndex, short ColIndex);
VC++_bstr_t Text = object->CellText[long ItemIndex][short ColIndex];
_bstr_t Text = object->GetCellText(long ItemIndex, short ColIndex);
CHRESULT object->get_CellText(long ItemIndex, short ColIndex, BSTR* Text);

Put

VB.NETobject.set_CellText(ByVal ItemIndex As Integer, ByVal ColIndex As Short, ByVal Text As String)
VBobject.CellText(ByVal ItemIndex As Long, ByVal ColIndex As Integer) = Text As String
C#.NETvoid object.set_CellText(int ItemIndex, short ColIndex, string Text);
VC++_bstr_t object->CellText[long ItemIndex][short ColIndex] = Text;
void object->PutCellText(long ItemIndex, short ColIndex, _bstr_t Text);
CHRESULT object->put_CellText(long ItemIndex, short ColIndex, BSTR Text);

object

A SftTree object.

ItemIndex

The zero-based item index. The combination of ItemIndex and ColIndex describes an individual cell.

ColIndex

The zero-based column number. The combination of ItemIndex and ColIndex describes an individual cell.

Text

Defines an item's cell text.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Cell.Text instead

The CellText property defines an item's cell text.

The Items.Add, Items.Insert and Items.InsertAfter methods add new items. The text specified when adding new items always defines the cell text for the first or only column (column 0).

The cell text may contain new-line characters (CR-LF) if multi-line cell text is enabled (see Items.Lines and Column.CellMultiline).

If the cell text is empty, the cell in the preceding column may merge into the empty cell, based on the Column.MergeInto property settings.

The default cell text alignment for a column is defined using the Column.CellHAlign and Column.CellVAlign properties. A cell can override the default using the Cell.TextHAlign and Cell.TextVAlign properties.

See Also SftTree Object | Object Hierarchy


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


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.