Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

EditIgnore Property, SftTreeItem Object

Defines whether the item 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 SftTreeItem object.

Boolean

Defines whether the item is ignored for cell editing.

BooleanDescription
TrueAll cells of this item are ignored for cell editing. They cannot be edited using the Cell.Edit method and the EditNavigate method will skip this item and all its cells.
FalseThis item and all its cells can be edited, unless editing is prevented by a cell's Cell.EditIgnore property.

Comments

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

Examples

VB.NET

            Item = AxSftTree1.get_Item(ItemIndex)
            Item.Level = 1
            Item.Cell(1).Text = "2nd Column"
            Item.Cell(2).Text = "3rd Column"

            ItemIndex = AxSftTree1.Items.Add("This item can't be edited")
            Item = AxSftTree1.get_Item(ItemIndex)
            Item.Level = 2
            Item.EditIgnore = True
            Item.Cell(0).Image.Appearance = SftPictureImageConstants.sftImageCheckboxYes
            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

VB6

        Set Item = SftTree1.Item(ItemIndex)
        Item.Level = 1
        Item.Cell(1).Text = "2nd Column"
        Item.Cell(2).Text = "3rd Column"

        ItemIndex = SftTree1.Items.Add("This item can't be edited")
        Set Item = SftTree1.Item(ItemIndex)
        Item.Level = 2
        Item.EditIgnore = True
        Item.Cell(0).Image.Appearance = sftImageCheckboxYes
        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

C#

                Item = axSftTree1.get_Item(ItemIndex);
                Item.Level = 1;
                Item.get_Cell(1).Text = "2nd Column";
                Item.get_Cell(2).Text = "3rd Column";

                ItemIndex = axSftTree1.Items.Add("This item can't be edited");
                Item = axSftTree1.get_Item(ItemIndex);
                Item.Level = 2;
                Item.EditIgnore = true;
                Item.get_Cell(0).Image.Appearance = SftPictureImageConstants.sftImageCheckboxYes;
                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;

C++

        pItem = m_vTree->Item[ItemIndex];
        pItem->Level = 1;
        pItem->Cell[1]->Text = _T("2nd Column");
        pItem->Cell[2]->Text = _T("3rd Column");

        ItemIndex = m_vTree->Items->Add(_T("This item can't be edited"));
        pItem = m_vTree->Item[ItemIndex];
        pItem->Level = 2;
        pItem->EditIgnore = VARIANT_TRUE;
        pItem->Cell[0]->Image->Appearance = sftImageCheckboxYes;
        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;

See Also SftTreeItem Object | Object Hierarchy


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