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
Defines the maximum number of text lines to be displayed by column headers.
Class: HeadersClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public int MaxLines { get; set; }
Public Property MaxLines As Integer
The maximum number of text lines to be displayed by column headers or 0 if there is no limit.
The default value is 1.
Defines the maximum number of text lines to be displayed by column headers.
The TextPartClass class honors this property and never displays more than the defined number of text lines for column headers.
When designing additional parts (derived from GenericPartClass or from TextPartClass), make sure to honor this property.
} // End of initialization // In this sample, vertical merging is based on empty subordinate cells. sftTree1.MergeStyle = MergeStyleEnum.EmptyCells; // 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");
Next ' End of initialization ' In this sample, vertical merging is based on empty subordinate cells. sftTree1.MergeStyle = MergeStyleEnum.EmptyCells ' 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")
See Also HeadersClass Class | Classes | SftTree/NET 2.0