SftBox/OCX 4.5

SftBoxRowColumnHeader.Picture Property

Softel vdm, Inc.

Defines the row/column header's picture component.

Deprecated - Provided for compatibility with earlier versions only - Use RowColumnHeader.Image.Picture instead

Syntax       

Get

VB.NET

refPictureObj = object.Picture  As stdole.IPictureDispLanguage-specific information

VB

Set refPictureObj = object.Picture  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information refPictureObj = object.Picture;

VC++

IPictureDisp* refPictureObj = object->GetPicture();

C

HRESULT object->get_Picture(IPictureDisp** refPictureObj);

Delphi

refPictureObj := object.Picture  : IPictureDispLanguage-specific information;

Put

VB.NET

object.let_Picture(ByVal refPictureObj As stdole.IPictureDispLanguage-specific information)

VB

object.Picture = refPictureObj  As IPictureDisp

C#.NET

void object.let_Picture(stdole.IPictureDispLanguage-specific information refPictureObj);

VC++

void object->PutPicture(IPictureDisp* refPictureObj);

C

HRESULT object->put_Picture(IPictureDisp* refPictureObj);

Delphi

procedure object._Set_Picture(refPictureObj : IPictureDispLanguage-specific information);

PutRef

VB.NET

object.Picture = refPictureObj  As stdole.IPictureDispLanguage-specific information

VB

Set object.Picture = refPictureObj  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information object.Picture = refPictureObj;

VC++

void object->PutRefPicture(IPictureDisp* refPictureObj);

C

HRESULT object->putref_Picture(IPictureDisp* refPictureObj);

Delphi

object.Picture := refPictureObj  : IPictureDispLanguage-specific information;

object

A SftBoxRowColumnHeader object.

refPictureObj

Defines the row/column header's picture component.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use RowColumnHeader.Image.Picture instead

The Picture property defines the row/column header's picture component.

The dimensions of the graphics are used to calculate the minimum required height for all column headers and the row/column header, so graphics and text are never clipped vertically.

To remove the row/column header picture, set the property to Nothing (0, null, NULL).

The position of the graphic relative to the text component can be defined using the RowColumnHeader.ImageHAlign and RowColumnHeader.ImageVAlign properties.

If the image object refPictureObj defines a bitmap, the top, left pixel of the bitmap must contain the bitmap's background color. This color will be replaced throughout the bitmap with the actual background (see Bitmap Transparency).


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com