HeaderPane
Main
Hide
Share Link
Print

SftBoxRowHeader.ImageHAlign Property

Defines the horizontal alignment of the graphic in this row header.

Syntax

Get

C#SftBoxHAlignConstants Style = object.ImageHAlign;
VB.NETStyle = object.ImageHAlign As SftBoxHAlignConstants
C++enum SftBoxHAlignConstants Style = object->ImageHAlign;
enum SftBoxHAlignConstants Style = object->GetImageHAlign();
CHRESULT object->get_ImageHAlign(enum SftBoxHAlignConstants* Style);
VBStyle = object.ImageHAlign As SftBoxHAlignConstants

Put

C#SftBoxHAlignConstants object.ImageHAlign = Style;
VB.NETobject.ImageHAlign = Style As SftBoxHAlignConstants
C++enum SftBoxHAlignConstants object->ImageHAlign = Style;
void object->PutImageHAlign(enum SftBoxHAlignConstants Style);
CHRESULT object->put_ImageHAlign(enum SftBoxHAlignConstants Style);
VBobject.ImageHAlign = Style As SftBoxHAlignConstants

object

A SftBoxRowHeader object.

Style

Defines the horizontal alignment of the graphic in this row header.

NameValueDescription
halignSftBoxLeft0The graphic is to the left of the row header text.
halignSftBoxCenter1The graphic is centered in the row header. The row header text is not displayed.
halignSftBoxRight2The graphic is to the right of the row header text.

Comments

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.

Examples

VB.NET View entire sample code

    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

VB6 View entire sample code

         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

C# View entire sample code

    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);
    }

C++ View entire sample code

    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


Last Updated 11/04/2026 - (email)
© 2026 Softel vdm, Inc.