SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns a specific filename by index from the DataObject.Files collection (sftCFFiles format only).
Get
VB.NET | Item = object.Item(ByVal ItemIndex As Integer) As String |
VB | Item = object.Item(ByVal ItemIndex As Long) As String |
C#.NET | string Item = object[int ItemIndex]; |
VC++ | _bstr_t Item = object->Item[long ItemIndex]; _bstr_t Item = object->GetItem(long ItemIndex); |
C | HRESULT object->get_Item(long ItemIndex, BSTR* Item); |
object
A DataObjectFiles object.
ItemIndex
The one-based position of the file name to be retrieved.
Item
Returns a specific filename by index from the DataObject.Files collection (sftCFFiles format only).
The Item property returns a specific filename by index from the DataObject.Files collection (sftCFFiles format only).
ElseIf Data.GetFormat(vbCFDIB) Then Set SftTree1.Cell(insertAt, 0).Image.Picture = Data.GetData(vbCFDIB) SftTree1.Cell(insertAt, 0).ImageHAlign = halignSftTreeRight ElseIf Data.GetFormat(vbCFFiles) Then SftTree1.BulkUpdate = True lvl = SftTree1.Item(insertAt).Level newItem = insertAt + 1 For i = Data.Files.Count To 1 Step -1 newItem = SftTree1.Items.Insert(newItem, Data.Files.Item(i)) SftTree1.Item(newItem).Level = lvl + 1 Next SftTree1.BulkUpdate = False End If ' make horizontal extent and width of column 0 wider than previous ' setting, but never smaller
IPictureDispPtr pPicDisp = object; m_vTree->Cell[insertAt][0]->Image->PutRefPicture(pPicDisp); m_vTree->Cell[insertAt][0]->ImageHAlign = halignSftTreeRight; } else if (pDataObject->GetFormat(sftCFFiles)) { m_vTree->BulkUpdate = VARIANT_TRUE; int lvl = m_vTree->Item[insertAt]->Level; long newItem = insertAt + 1; for (int i = pDataObject->Files->Count ; i >= 1 ; --i) { newItem = m_vTree->Items->Insert(newItem, pDataObject->Files->GetItem(i)); m_vTree->Item[newItem]->Level = lvl + 1; } m_vTree->BulkUpdate = VARIANT_FALSE; } // make horizontal extent and width of column 0 wider than previous // setting, but never smaller
See Also DataObjectFiles Object | Object Hierarchy