SftButton/OCX 2.5

SftButton.AutoSize Property

Softel vdm, Inc.

Defines how the control is resized based on its contents.

Syntax       

Get

VB.NET

Style = object.AutoSize  As SftButtonAutoSizeConstants
Style = object.CtlAutoSize  As SftButtonAutoSizeConstants

VB

Style = object.AutoSize  As SftButtonAutoSizeConstants

C#.NET

SftButtonAutoSizeConstants Style = object.AutoSize;
SftButtonAutoSizeConstants Style = object.CtlAutoSize;

VC++

enum SftButtonAutoSizeConstants Style = object->AutoSize;
enum SftButtonAutoSizeConstants Style = object->GetAutoSize();

C

HRESULT object->get_AutoSize(enum SftButtonAutoSizeConstants* Style);

Delphi

Style := object.AutoSize  : TOleEnum;

Put

VB.NET

object.AutoSize = Style  As SftButtonAutoSizeConstants
object.CtlAutoSize = Style  As SftButtonAutoSizeConstants

VB

object.AutoSize = Style  As SftButtonAutoSizeConstants

C#.NET

SftButtonAutoSizeConstants object.AutoSize = Style;
SftButtonAutoSizeConstants object.CtlAutoSize = Style;

VC++

enum SftButtonAutoSizeConstants object->AutoSize = Style;
void object->PutAutoSize(enum SftButtonAutoSizeConstants Style);

C

HRESULT object->put_AutoSize(enum SftButtonAutoSizeConstants Style);

Delphi

object.AutoSize := Style  : TOleEnum;

object

A SftButton object.

Style

Defines how the control is resized based on its contents.

Name

Value

Description

autosizeSftButtonNone

0

None - The control is not automatically resized.

autosizeSftButtonTopLeft

1

Top/Left Corner - The control is automatically resized. The top, left corner remains at the same position as the control is resized.

autosizeSftButtonTopRight

2

Top/Right Corner - The control is automatically resized. The top, right corner remains at the same position as the control is resized.

autosizeSftButtonBottomLeft

3

Bottom/Left Corner - The control is automatically resized. The bottom, left corner remains at the same position as the control is resized.

autosizeSftButtonBottomRight

4

Bottom/Right Corner - The control is automatically resized. The bottom, right corner remains at the same position as the control is resized.

autosizeSftButtonTopCenter

5

Top Center - The control is automatically resized. The top, center location remains at the same position as the control is resized.

autosizeSftButtonBottomCenter

6

Bottom Center - The control is automatically resized. The bottom, center location remains at the same position as the control is resized.

autosizeSftButtonLeftCenter

7

Left Side Center - The control is automatically resized. The left, center location remains at the same position as the control is resized.

autosizeSftButtonRightCenter

8

Right Side Center - The control is automatically resized. The right, center location remains at the same position as the control is resized.

autosizeSftButtonCenter

9

Center - The control is automatically resized. The center of the control remains at the same position as the control is resized.

Comments

The AutoSize property defines how the control is resized based on its contents.

If AutoSize is set to a value other than autosizeSftButtonNone, the control is automatically resized whenever its contents change, so all graphics and text components fit without being clipped.


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