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 row header.
Get
VB.NET | Style = object.ImageHAlign As SftBoxHAlignConstants |
VB | Style = object.ImageHAlign As SftBoxHAlignConstants |
C#.NET | SftBoxHAlignConstants Style = object.ImageHAlign; |
VC++ | enum SftBoxHAlignConstants Style = object->ImageHAlign; enum SftBoxHAlignConstants Style = object->GetImageHAlign(); |
C | HRESULT object->get_ImageHAlign(enum SftBoxHAlignConstants* Style); |
Put
VB.NET | object.ImageHAlign = Style As SftBoxHAlignConstants |
VB | object.ImageHAlign = Style As SftBoxHAlignConstants |
C#.NET | SftBoxHAlignConstants object.ImageHAlign = Style; |
VC++ | enum SftBoxHAlignConstants object->ImageHAlign = Style; void object->PutImageHAlign(enum SftBoxHAlignConstants Style); |
C | HRESULT object->put_ImageHAlign(enum SftBoxHAlignConstants Style); |
object
Style
Defines the horizontal alignment of the graphic in this row header.
Name | Value | Description |
---|---|---|
halignSftBoxLeft | 0 | The graphic is to the left of the row header text. |
halignSftBoxCenter | 1 | The graphic is centered in the row header. The row header text is not displayed. |
halignSftBoxRight | 2 | The graphic is to the right of the row header text. |
The ImageHAlign property defines the horizontal alignment of the graphic in this row header.
The RowHeader.ImageVAlign property defines the vertical alignment of the optional row header picture, defined using the RowHeader.Image property.
End If SftBox1.get_Cell(index, 2).Text = Cell2 If index Mod 5 = 0 Then SftBox1.get_Cell(index, 2).Image.NETImageObject = picturePin.Image If index Mod 10 = 0 Then SftBox1.get_Cell(index, 2).ImageHAlign = SftBoxHAlignConstants.halignSftBoxRight End If If index Mod 3 = 0 Then SftBox1.get_Item(index).RowHeader.Image.NETImageObject = picturePic.Image If index Mod 6 = 0 Then SftBox1.get_Item(index).RowHeader.ImageHAlign = SftBoxHAlignConstants.halignSftBoxRight End If If index Mod 6 = 0 Then SftBox1.get_Cell(index, 0).Font = OLECvt.ToIFontDisp(BoldFont) If index Mod 7 = 0 Then SftBox1.get_Cell(index, 1).Font = OLECvt.ToIFontDisp(ItalicFont) AddOneItem = index End Function
Set SftBox1.Cell(AddOneItem, 2).Image.Picture = PicturePin.Picture If (AddOneItem Mod 10) <> 0 Then SftBox1.Cell(AddOneItem, 2).ImageHAlign = halignSftBoxRight End If End If If (AddOneItem Mod 3) = 0 Then Set SftBox1.Item(AddOneItem).RowHeader.Image.Picture = PicturePic.Picture If (AddOneItem Mod 6) <> 0 Then SftBox1.Item(AddOneItem).RowHeader.ImageHAlign = halignSftBoxRight End If End If If (AddOneItem Mod 6) = 0 Then SftBox1.Cell(AddOneItem, 0).Font.Bold = True End If If (AddOneItem Mod 7) = 0 Then SftBox1.Cell(AddOneItem, 1).Font.Italic = True
if (index % 5 == 0) { SftBox1.get_Cell(index, 2).Image.NETImageObject = picturePin.Image; if (index % 10 == 0) SftBox1.get_Cell(index, 2).ImageHAlign = SftBoxHAlignConstants.halignSftBoxRight; } if (index % 3 == 0) { SftBox1.get_Item(index).RowHeader.Image.NETImageObject = picturePic.Image; if (index % 6 == 0) SftBox1.get_Item(index).RowHeader.ImageHAlign = SftBoxHAlignConstants.halignSftBoxRight; } if (index % 6 == 0) { SftBox1.get_Cell(index, 0).Font = OLECvt.ToIFontDisp(BoldFont); } if (index % 7 == 0) { SftBox1.get_Cell(index, 1).Font = OLECvt.ToIFontDisp(ItalicFont); }
if ((index % 5) == 0) { vBox1->Cell[index][2]->Image->putref_Picture(m_pIPictureDispPin); if ((index % 10) != 0) vBox1->Cell[index][2]->ImageHAlign = halignSftBoxRight; } if ((index % 3) == 0) { vBox1->Item[index]->RowHeader->Image->putref_Picture(m_pIPictureDispPicture); if ((index % 6) != 0) vBox1->Item[index]->RowHeader->ImageHAlign = halignSftBoxRight; } if ((index % 6) == 0) vBox1->Cell[index][0]->putref_Font(m_pBoldFont); if ((index % 7) == 0) vBox1->Cell[index][0]->putref_Font(m_pItalicFont); return index;
See Also SftBoxRowHeader Object | Object Hierarchy