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 vertical alignment.
Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public enum VAlignmentOptionalEnum;
Public Enum VAlignmentOptionalEnum
Name | Description |
---|---|
Top | The contents are aligned with the top of the available space. |
Center | The contents are vertically centered within the available space. |
Bottom | The contents are aligned with the bottom of the available space. |
Default | The default value is determined by a containing object or by the environment. |
Defines the vertical alignment.
Image img = Bitmap.FromFile("..\\..\\test.gif"); // Add an item ItemClass item = sftTree1.ItemCollection.Add(); // Add a text part to the first cell (could use CellBaseClass.Text instead) CellClass cell = item.Cells[0]; TextPartClass tp = new TextPartClass("The first cell", LineStyleEnum.Wordwrap, HAlignmentOptionalEnum.Left, VAlignmentOptionalEnum.Top, Color.Blue, Color.Green, Color.Red, Color.Blue, new Font("Arial", 12), StringFormatFlags.LineLimit| StringFormatFlags.MeasureTrailingSpaces); cell.Parts.Add(tp); // Followed by a check box (still in the first cell) CheckBoxPartClass cb = new CheckBoxPartClass( CheckBoxStateEnum.Unchecked, HAlignmentOptionalEnum.Left, VAlignmentOptionalEnum.Top, true); cb.Action += new GenericPartClass.ActionEventHandler(cb_Action); cell.Parts.Add(cb); // Followed by an image (still in the first cell) ImagePartClass ip = new ImagePartClass(img);
Dim img As Image = Bitmap.FromFile("..\\..\\test.gif") ' Add an item Dim item As ItemClass = sftTree1.ItemCollection.Add() ' Add a text part to the first cell (could use CellBaseClass.Text instead) Dim cell As CellClass = item.Cells(0) Dim tp As TextPartClass = New TextPartClass("The first cell", LineStyleEnum.Wordwrap, HAlignmentOptionalEnum.Left, _ VAlignmentOptionalEnum.Top, Color.Blue, Color.Green, Color.Red, Color.Blue, New Font("Arial", 12), StringFormatFlags.LineLimit Or StringFormatFlags.MeasureTrailingSpaces) cell.Parts.Add(tp) ' Followed by a check box (still in the first cell) Dim cb As CheckBoxPartClass = New CheckBoxPartClass(CheckBoxStateEnum.Unchecked, HAlignmentOptionalEnum.Left, VAlignmentOptionalEnum.Top, True) AddHandler cb.Action, AddressOf cb_Action cell.Parts.Add(cb) ' Followed by an image (still in the first cell) Dim ip As ImagePartClass = New ImagePartClass(img)
See Also | Classes | SftTree/NET 2.0