Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

EditIgnore Property, SftTreeCell Object

Defines whether the cell is ignored for cell editing.

Syntax

Get

VB.NETBoolean = object.EditIgnore As Boolean
VBBoolean = object.EditIgnore As Boolean
C#.NETbool Boolean = object.EditIgnore;
VC++VARIANT_BOOL Boolean = object->EditIgnore;
VARIANT_BOOL Boolean = object->GetEditIgnore();
CHRESULT object->get_EditIgnore(VARIANT_BOOL* Boolean);

Put

VB.NETobject.EditIgnore = Boolean As Boolean
VBobject.EditIgnore = Boolean As Boolean
C#.NETbool object.EditIgnore = Boolean;
VC++VARIANT_BOOL object->EditIgnore = Boolean;
void object->PutEditIgnore(VARIANT_BOOL Boolean);
CHRESULT object->put_EditIgnore(VARIANT_BOOL Boolean);

object

A SftTreeCell object.

Boolean

Defines whether the cell is ignored for cell editing.

BooleanDescription
TrueThe cell is ignored for cell editing. It cannot be edited using the Cell.Edit method and the EditNavigate method will skip this cell.
FalseThe cell can be edited, unless editing is prevented by the Item.EditIgnore property.

Comments

The EditIgnore property defines whether the cell is ignored for cell editing.

Examples

VB.NET

            Item.Cell(1).Text = "2nd Column (can't edit this item)"
            Item.Cell(2).Text = "3rd Column (can't edit this item)"

            ItemIndex = AxSftTree1.Items.Add("A fourth item")
            Item = AxSftTree1.get_Item(ItemIndex)
            Item.Level = 1
            Cell = AxSftTree1.get_Cell(ItemIndex, 1)
            Cell.Text = "This cell can't be edited"
            Cell.EditIgnore = True
            Cell.Image.Appearance = SftPictureImageConstants.sftImageCheckboxYes
            AxSftTree1.get_Cell(ItemIndex, 2).Text = "3rd Column"
        Next

        AxSftTree1.ColumnsObj.MakeOptimal()
        AxSftTree1.RowHeaders.MakeOptimal()
        AxSftTree1.Items.RecalcHorizontalExtent()

VB6

        Item.Cell(1).Text = "2nd Column (can't edit this item)"
        Item.Cell(2).Text = "3rd Column (can't edit this item)"

        ItemIndex = SftTree1.Items.Add("A fourth item")
        Set Item = SftTree1.Item(ItemIndex)
        Item.Level = 1
        Set Cell = SftTree1.Cell(ItemIndex, 1)
        Cell.Text = "This cell can't be edited"
        Cell.EditIgnore = True
        Cell.Image.Appearance = sftImageCheckboxYes
        SftTree1.Cell(ItemIndex, 1).EditIgnore = True
        SftTree1.Cell(ItemIndex, 2).Text = "3rd Column"

    Next

    SftTree1.ColumnsObj.MakeOptimal

C#

                Item.get_Cell(1).Text = "2nd Column (can't edit this item)";
                Item.get_Cell(2).Text = "3rd Column (can't edit this item)";

                ItemIndex = axSftTree1.Items.Add("A fourth item");
                Item = axSftTree1.get_Item(ItemIndex);
                Item.Level = 1;
                Cell = axSftTree1.get_Cell(ItemIndex, 1);
                Cell.Text = "This cell can't be edited";
                Cell.EditIgnore = true;
                Cell.Image.Appearance = SftPictureImageConstants.sftImageCheckboxYes;
                axSftTree1.get_Cell(ItemIndex, 2).Text = "3rd Column";

            }

            axSftTree1.ColumnsObj.MakeOptimal();
            axSftTree1.RowHeaders.MakeOptimal();

C++

        pItem->Cell[1]->Text = _T("2nd Column (can't edit this item)");
        pItem->Cell[2]->Text = _T("3rd Column (can't edit this item)");

        ItemIndex = m_vTree->Items->Add(_T("A fourth item"));
        pItem = m_vTree->Item[ItemIndex];
        pItem->Level = 1;
        pCell = m_vTree->Cell[ItemIndex][1];
        pCell->Text = _T("This cell can't be edited");
        pCell->EditIgnore = VARIANT_TRUE;
        pCell->Image->Appearance = sftImageCheckboxYes;
        m_vTree->Cell[ItemIndex][2]->Text = _T("3rd Column");

    }

    m_vTree->ColumnsObj->MakeOptimal();
    m_vTree->RowHeaders->MakeOptimal();

See Also SftTreeCell 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.