Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

OrientationOptionalEnum Enumeration

Defines the cell parts orientation.

Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public enum OrientationOptionalEnum;
Public Enum OrientationOptionalEnum

Values

NameDescription
DefaultThe orientation is determined by the location, where the cell is used (see below).
HorizontalParts are positioned next to each other.
VerticalParts are positioned one below the other.

Comments

Defines the cell parts orientation.

Parts in a cell can have either a horizontal orientation (parts are positioned next to each other) or a vertical orientation (parts are positioned one below the other).

SftTree.OrientationDefault for items, HeadersClass.OrientationDefault for column headers and FootersClass.OrientationDefault for column footers.

Examples

C#

            ddp.PartAlignment = PartAlignmentEnum.FlushEnd;
            cell.Parts.Add(ddp);

            // 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");

VB.NET

    ddp.PartAlignment = PartAlignmentEnum.FlushEnd
    cell.Parts.Add(ddp)

    ' 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")

See Also | Classes | SftTree/NET 2.0



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.