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
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the horizontal alignment of the graphic in this cell.
Deprecated - Provided for compatibility with earlier versions only - Use Cell.ImageHAlign instead
Get
VB.NET | Align = object.PictureAlign As SftBoxAlignConstants |
VB | Align = object.PictureAlign As SftBoxAlignConstants |
C#.NET | SftBoxAlignConstants Align = object.PictureAlign; |
VC++ | enum SftBoxAlignConstants Align = object->PictureAlign; enum SftBoxAlignConstants Align = object->GetPictureAlign(); |
C | HRESULT object->get_PictureAlign(enum SftBoxAlignConstants* Align); |
Put
VB.NET | object.PictureAlign = Align As SftBoxAlignConstants |
VB | object.PictureAlign = Align As SftBoxAlignConstants |
C#.NET | SftBoxAlignConstants object.PictureAlign = Align; |
VC++ | enum SftBoxAlignConstants object->PictureAlign = Align; void object->PutPictureAlign(enum SftBoxAlignConstants Align); |
C | HRESULT object->put_PictureAlign(enum SftBoxAlignConstants Align); |
object
Align
Defines the horizontal alignment of the graphic in this cell.
Align | Value | Description |
---|---|---|
constSftBoxLeft | 0 | The graphic is displayed to the left of the cell text. |
constSftBoxCenter | 1 | The graphic is centered within the cell. The cell text is not displayed. |
constSftBoxRight | 2 | The graphic is displayed to the right of the cell text. |
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.
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