HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

VAlignStyle Property, SftTree Object

Defines the vertical alignment of tree lines, expand/collapse buttons, label, plus/minus and item graphics.

Syntax

Get

VB.NETVAlign = object.VAlignStyle As SftTreeVAlignConstants
VBVAlign = object.VAlignStyle As SftTreeVAlignConstants
C#.NETSftTreeVAlignConstants VAlign = object.VAlignStyle;
VC++enum SftTreeVAlignConstants VAlign = object->VAlignStyle;
enum SftTreeVAlignConstants VAlign = object->GetVAlignStyle();
CHRESULT object->get_VAlignStyle(enum SftTreeVAlignConstants* VAlign);

Put

VB.NETobject.VAlignStyle = VAlign As SftTreeVAlignConstants
VBobject.VAlignStyle = VAlign As SftTreeVAlignConstants
C#.NETSftTreeVAlignConstants object.VAlignStyle = VAlign;
VC++enum SftTreeVAlignConstants object->VAlignStyle = VAlign;
void object->PutVAlignStyle(enum SftTreeVAlignConstants VAlign);
CHRESULT object->put_VAlignStyle(enum SftTreeVAlignConstants VAlign);

object

A SftTree object.

VAlign

Defines the vertical alignment of tree lines, expand/collapse buttons, label, plus/minus and item graphics.

AlignValueDescription
valignSftTreeCenter0The tree lines, expand/collapse buttons, label graphics, plus/minus graphics and item graphics are vertically centered. If no alignment value is specified, this is the default.
valignSftTreeTop1The tree lines, expand/collapse buttons, label graphics, plus/minus graphics and item graphics are aligned with the top of the available area.
valignSftTreeBottom2The tree lines, expand/collapse buttons, label graphics, plus/minus graphics and item graphics are aligned with the bottom of the available area.

Comments

The VAlignStyle property defines the vertical alignment of tree lines, expand/collapse buttons, label graphics, plus/minus graphics and item graphics.

Columns and cells can further define the vertical alignment of cell contents (see Column.CellVAlign, Cell.TextVAlign and Cell.ImageVAlign).

Examples

VB6

      LeftButtonOnly  =   1
      LeftItemClickOnly=   1
      OLEDropMode     =   0
      RightToLeft     =   0
      UseThemes       =   -1  'True
      Scrollbars      =   3
      ScrollbarStyle  =   0
      ShowTruncated   =   1
      VAlignStyle     =   0
      VirtualMode     =   0
      WebLicense      =   ""
      SmoothScroll    =   1
      ButtonAppearance=   -1
      MouseOverTransitionEffect=   4
      BeginProperty ButtonExpanded {980702E2-0AB6-41B1-9B85-F8755A697255} 
         Object.Height          =   0

See Also SftTree Object | Object Hierarchy


Last Updated 05/24/2026 - (email)
© 2026 Softel vdm, Inc.