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
Removes all parts from the parts collection.
Class: PartsCollectionClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public void Clear();
Public Sub Clear()
Removes all parts from the parts collection.
// Merge all cells in the column header vertically (in the second column)
// clear the text in all subordinate cells except for the first, main cell
sftTree1.Headers.MaxLines = 4; // allow up to 4 text lines
for (int r = 0; r < sftTree1.Headers.Rows; ++r) {
cell = sftTree1.Headers[r, 1];
cell.MergeWithLower = BoolOptionalEnum.True;
cell.AllowMergeFromUpper = BoolOptionalEnum.True;
cell.Parts.Clear();
}
TextPartClass tp = new TextPartClass("Vertical");
tp.Format |= StringFormatFlags.DirectionVertical;
sftTree1.Headers[0, 1].Parts.Add(tp);
sftTree1.Headers[0, 1].Parts.Add(new ImagePartClass(img));
tp = new TextPartClass("Cell merging in\na column header");
sftTree1.Headers[0, 1].Parts.Add(tp);
' Merge all cells in the column header vertically (in the second column)
' clear the text in all subordinate cells except for the first, main cell
sftTree1.Headers.MaxLines = 4 ' allow up to 4 text lines
For r As Integer = 0 To sftTree1.Headers.Rows - 1
cell = sftTree1.Headers(r, 1)
cell.MergeWithLower = BoolOptionalEnum.True
cell.AllowMergeFromUpper = BoolOptionalEnum.True
cell.Parts.Clear()
Next
Dim tp As TextPartClass = New TextPartClass("Vertical")
tp.Format = tp.Format Or StringFormatFlags.DirectionVertical
sftTree1.Headers(0, 1).Parts.Add(tp)
sftTree1.Headers(0, 1).Parts.Add(New ImagePartClass(img))
tp = New TextPartClass("Cell merging in" & vbCrLf & "a column header")
sftTree1.Headers(0, 1).Parts.Add(tp)
See Also PartsCollectionClass Class | Classes | SftTree/NET 2.0
