SftButton/OCX 2.5

SftPictureObject.Width Property

Softel vdm, Inc.

Defines the desired image width.

Syntax       

Get

VB.NET

WPix = object.Width  As Integer

VB

WPix = object.Width  As Long

C#.NET

int WPix = object.Width;

VC++

long WPix = object->Width;
long WPix = object->GetWidth();

C

HRESULT object->get_Width(long* WPix);

Delphi

WPix := object.Width   : Integer;

Put

VB.NET

object.Width = WPix  As Integer

VB

object.Width = WPix  As Long

C#.NET

int object.Width = WPix;

VC++

long object->Width = WPix;
void object->PutWidth(long WPix);

C

HRESULT object->put_Width(long WPix);

Delphi

object.Width := WPix   : Integer;

object

A SftPictureObject object.

WPix

Defines the desired image width.

Comments

The Width property defines the desired image width.

The desired image width is only used for built-in images (SftPictureObject.Type is sftTypeBuiltin) and color samples (SftPictureObject.Type is sftTypeColorSample).  For all image types, the SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image dimensions.


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