SftButton/DLL 3.0 - Button Control (Coming Soon)
SftTabs/DLL 7.0 - Tab Control (Coming Soon)
SftTree/DLL 7.5 - Tree Control
SftTree/DLL 8.0 - Tree Control (Coming Soon)
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
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
SftTree/NET 2.0 - Tree Control
Defines the horizontal alignment within the part's available space.
Class: GenericPartClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public HAlignmentOptionalEnum HAlign { get; set; }
Public Property HAlign As HAlignmentOptionalEnumThe horizontal alignment.
The default value is HAlignmentOptionalEnum.Default.
Defines the horizontal alignment within the part's available space.
It only defines the alignment within the specific part. To define the alignment and position relative to its neighboring parts, use the GenericPartClass.PartAlignment property instead.
// Add another item
item = sftTree1.ItemCollection.Add();
// Add three parts with a vertical orientation to the first cell
cell = item.Cells[0];
cell.Orientation = OrientationOptionalEnum.Vertical;
tp = new TextPartClass("First part");
tp.HAlign = HAlignmentOptionalEnum.Left;
cell.Parts.Add(tp);
ip = new ImagePartClass(img);
ip.HAlign = HAlignmentOptionalEnum.Center;
cell.Parts.Add(ip);
tp = new TextPartClass("Third part");
tp.HAlign = HAlignmentOptionalEnum.Right;
cell.Parts.Add(tp);
' Add another item
item = sftTree1.ItemCollection.Add()
' Add three parts with a vertical orientation to the first cell
cell = item.Cells(0)
cell.Orientation = OrientationOptionalEnum.Vertical
tp = New TextPartClass("First part")
tp.HAlign = HAlignmentOptionalEnum.Left
cell.Parts.Add(tp)
ip = New ImagePartClass(img)
ip.HAlign = HAlignmentOptionalEnum.Center
cell.Parts.Add(ip)
tp = New TextPartClass("Third part")
tp.HAlign = HAlignmentOptionalEnum.Right
cell.Parts.Add(tp)
See Also GenericPartClass Class | Classes | SftTree/NET 2.0
