|
|
|
SftButton.AutoSize Property |
Defines how the control is resized based on its contents.
Syntax
VB.NET |
Style = object.AutoSize As SftButtonAutoSizeConstants
|
||
VB |
Style = object.AutoSize As SftButtonAutoSizeConstants |
||
C#.NET |
SftButtonAutoSizeConstants Style = object.AutoSize;
|
||
VC++ |
enum SftButtonAutoSizeConstants Style = object->AutoSize;
|
||
C |
HRESULT object->get_AutoSize(enum SftButtonAutoSizeConstants* Style); |
||
Delphi |
Style := object.AutoSize : TOleEnum; |
||
VB.NET |
object.AutoSize = Style As SftButtonAutoSizeConstants
|
||
VB |
object.AutoSize = Style As SftButtonAutoSizeConstants |
||
C#.NET |
SftButtonAutoSizeConstants object.AutoSize = Style;
|
||
VC++ |
enum SftButtonAutoSizeConstants object->AutoSize = 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 |
0 |
None - The control is not automatically resized. |
|
1 |
Top/Left Corner - The control is automatically resized. The top, left corner remains at the same position as the control is resized. |
|
2 |
Top/Right Corner - The control is automatically resized. The top, right corner remains at the same position as the control is resized. |
|
3 |
Bottom/Left Corner - The control is automatically resized. The bottom, left corner remains at the same position as the control is resized. |
|
4 |
Bottom/Right Corner - The control is automatically resized. The bottom, right corner remains at the same position as the control is resized. |
|
5 |
Top Center - The control is automatically resized. The top, center location remains at the same position as the control is resized. |
|
6 |
Bottom Center - The control is automatically resized. The bottom, center location remains at the same position as the control is resized. |
|
7 |
Left Side Center - The control is automatically resized. The left, center location remains at the same position as the control is resized. |
|
8 |
Right Side Center - The control is automatically resized. The right, center location remains at the same position as the control is resized. |
|
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.