Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxCell.PictureAlign Property

Defines the horizontal alignment of the graphic in this cell.

Deprecated - Provided for compatibility with earlier versions only - Use Cell.ImageHAlign instead

Syntax

Get

VB.NETAlign = object.PictureAlign As SftBoxAlignConstants
VBAlign = object.PictureAlign As SftBoxAlignConstants
C#.NETSftBoxAlignConstants Align = object.PictureAlign;
VC++enum SftBoxAlignConstants Align = object->PictureAlign;
enum SftBoxAlignConstants Align = object->GetPictureAlign();
CHRESULT object->get_PictureAlign(enum SftBoxAlignConstants* Align);

Put

VB.NETobject.PictureAlign = Align As SftBoxAlignConstants
VBobject.PictureAlign = Align As SftBoxAlignConstants
C#.NETSftBoxAlignConstants object.PictureAlign = Align;
VC++enum SftBoxAlignConstants object->PictureAlign = Align;
void object->PutPictureAlign(enum SftBoxAlignConstants Align);
CHRESULT object->put_PictureAlign(enum SftBoxAlignConstants Align);

object

A SftBoxCell object.

Align

Defines the horizontal alignment of the graphic in this cell.

AlignValueDescription
constSftBoxLeft0The graphic is displayed to the left of the cell text.
constSftBoxCenter1The graphic is centered within the cell. The cell text is not displayed.
constSftBoxRight2The graphic is displayed to the right of the cell text.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Cell.ImageHAlign instead

The PictureAlign property defines the horizontal alignment of the graphic in this cell.

The Cell.ImageVAlign property is used to define the vertical alignment of the graphic in this cell. The cell graphic is defined using the Cell.Image property.

The cell text alignment is defined using the Cell.TextHAlign and Column.CellHAlign properties.

Examples

C#

private void AddCompany(string CompName, string NotUsed1, string NotUsed2, string Address, string City, string State, string ZIP, string Country, string Phone, string Fax)
{
    int index;
    index = companyList.Items.Add(CompName);
    if (Country == "United States") {
        companyList.get_Cell(index, 0).let_Font(OLECvt.ToIFontDisp(BoldFont));
        companyList.get_Cell(index, 0).Image.NETImageObject = pictureBox1.Image;
        companyList.get_Cell(index, 0).PictureAlign = SftBoxAlignConstants.constSftBoxRight;
    }
    companyList.get_Cell(index, 1).Text = Address;
    companyList.get_Cell(index, 2).Text = City;
    companyList.get_Cell(index, 3).Text = State;
    companyList.get_Cell(index, 4).Text = ZIP;
    companyList.get_Cell(index, 5).Text = Country;
    companyList.get_Cell(index, 6).Text = Phone;
    companyList.get_Cell(index, 7).Text = Fax;

See Also SftBoxCell Object | Object Hierarchy


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