This property is True if the width of the specified button should be calculated automatically. It is not accessible in the Object Inspector.
object.AutoSize
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISButton interface |
bool
Display AutoSize for the specified button.
Dim aButton
Dim aControlInfo
Set aButton = Form.Controls_("btnDemo")
aControlInfo =_
"Caption: " & aButton.Caption & vbNewLine &_
"ShortName: " & aButton.ShortName & vbNewLine &_
"TypeName: " & aButton.TypeName & vbNewLine &_
"Width: " & aButton.Width & vbNewLine &_
"Auto Size: " & aButton.AutoSize
Profile.MsgBox(aControlInfo)