Hide

SftButton/OCX 3.0 - Button Control

Display
Print

Orientation Property, SftButton Object

Defines the text and picture orientation.

Syntax

Get

VB.NETOrientation = object.Orientation As SftButtonOrientationConstants
VBOrientation = object.Orientation As SftButtonOrientationConstants
C#.NETSftButtonOrientationConstants Orientation = object.Orientation;
VC++enum SftButtonOrientationConstants Orientation = object->Orientation;
enum SftButtonOrientationConstants Orientation = object->GetOrientation();
CHRESULT object->get_Orientation(enum SftButtonOrientationConstants* Orientation);

Put

VB.NETobject.Orientation = Orientation As SftButtonOrientationConstants
VBobject.Orientation = Orientation As SftButtonOrientationConstants
C#.NETSftButtonOrientationConstants object.Orientation = Orientation;
VC++enum SftButtonOrientationConstants object->Orientation = Orientation;
void object->PutOrientation(enum SftButtonOrientationConstants Orientation);
CHRESULT object->put_Orientation(enum SftButtonOrientationConstants Orientation);

object

A SftButton object.

Orientation

Defines the text and picture orientation.

NameValueDescription
orientationSftButtonHorizontal0Text and picture components are positioned horizontally (left to right).
orientationSftButtonVertical1Text and picture components are positioned vertically (top to bottom).

Comments

The Orientation property defines the text and picture orientation.

For detailed information on the use of the Orientation, Image1, Image1AlignHorz, Image1AlignVert, Image2, Image2AlignHorz, Image2AlignVert, Text, TextAlignHorz, TextAlignVert properties, please see "Button Label".

Examples

VB.NET

    ' Appearance
    AxSftButton1.AVITransparent = True
    AxSftButton1.BorderAlways = True
    AxSftButton1.BorderStyle = SftButtonBorderStyleConstants.borderSftButtonStandard
    AxSftButton1.ButtonStyle = SftButtonStyleConstants.styleSftButtonDropDown
    AxSftButton1.DropDownPressed = False
    AxSftButton1.DropDownStyle = SftButtonDropDownStyleConstants.dropdownstyleSftButtonStandard
    AxSftButton1.FillOrientation = SftButtonOrientationConstants.orientationSftButtonHorizontal
    AxSftButton1.Orientation = SftButtonOrientationConstants.orientationSftButtonHorizontal
    AxSftButton1.Pressed = False
    AxSftButton1.ShowFocus = True
    AxSftButton1.Text = "Code Sample"
    AxSftButton1.TextAlignHorz = SftButtonAlignConstants.alignSftButtonCenter
    AxSftButton1.TextAlignVert = SftButtonAlignVertConstants.alignSftButtonVCenter
    AxSftButton1.UseThemes = SftButtonThemesConstants.themesSftButtonNo
    ' Behavior

VB6

' Appearance
    SftButton1.AVITransparent = True
    SftButton1.BorderAlways = True
    SftButton1.BorderStyle = borderSftButtonStandard
    SftButton1.ButtonStyle = styleSftButtonDropDown
    SftButton1.DropDownPressed = False
    SftButton1.DropDownStyle = dropdownstyleSftButtonStandard
    SftButton1.FillOrientation = orientationSftButtonHorizontal
    SftButton1.Orientation = orientationSftButtonHorizontal
    SftButton1.Pressed = False
    SftButton1.ShowFocus = True
    SftButton1.Text = "Code Sample"
    SftButton1.TextAlignHorz = alignSftButtonCenter
    SftButton1.TextAlignVert = alignSftButtonVCenter
    SftButton1.UseThemes = themesSftButtonNo
' Behavior

C#

    // Appearance
    axSftButton1.AVITransparent = true;
    axSftButton1.BorderAlways = true;
    axSftButton1.BorderStyle = SftButtonBorderStyleConstants.borderSftButtonStandard;
    axSftButton1.ButtonStyle = SftButtonStyleConstants.styleSftButtonDropDown;
    axSftButton1.DropDownPressed = false;
    axSftButton1.DropDownStyle = SftButtonDropDownStyleConstants.dropdownstyleSftButtonStandard;
    axSftButton1.FillOrientation = SftButtonOrientationConstants.orientationSftButtonHorizontal;
    axSftButton1.Orientation = SftButtonOrientationConstants.orientationSftButtonHorizontal;
    axSftButton1.Pressed = false;
    axSftButton1.ShowFocus = true;
    axSftButton1.Text = "Code Sample";
    axSftButton1.TextAlignHorz = SftButtonAlignConstants.alignSftButtonCenter;
    axSftButton1.TextAlignVert = SftButtonAlignVertConstants.alignSftButtonVCenter;
    axSftButton1.UseThemes = SftButtonThemesConstants.themesSftButtonNo;
    // Behavior

C++

// Appearance
    m_vButton->put_AVITransparent(VARIANT_TRUE);
    m_vButton->put_BorderAlways(VARIANT_TRUE);
    m_vButton->put_BorderStyle(borderSftButtonStandard);
    m_vButton->put_ButtonStyle(styleSftButtonDropDown);
    m_vButton->put_DropDownPressed(VARIANT_FALSE);
    m_vButton->put_DropDownStyle(dropdownstyleSftButtonStandard);
    m_vButton->put_FillOrientation(orientationSftButtonHorizontal);
    m_vButton->put_Orientation(orientationSftButtonHorizontal);
    m_vButton->put_Pressed(VARIANT_FALSE);
    m_vButton->put_ShowFocus(VARIANT_TRUE);
    m_vButton->put_Text(_bstr_t(_T("Code Sample")));
    m_vButton->put_TextAlignHorz(alignSftButtonCenter);
    m_vButton->put_TextAlignVert(alignSftButtonVCenter);
    m_vButton->put_UseThemes(themesSftButtonNo);
// Behavior

See Also SftButton Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.