HeaderPane
Main
Hide
Share Link
Print

OptimalWidth Property, SftButton Object

Returns the control's optimal width.

Syntax

Get

C#int Width = object.OptimalWidth;
VB.NETWidth = object.OptimalWidth As Integer
C++int Width = object->OptimalWidth;
int Width = object->GetOptimalWidth();
CHRESULT object->get_OptimalWidth(int* Width);
VBWidth = object.OptimalWidth As Integer

object

A SftButton object.

Width

Returns the control's optimal width.

Comments

The OptimalWidth property returns the control's optimal width.

The optimal width returned allows all text and picture components to be displayed without being clipped.

The OptimalHeight property returns the control's optimal height.

The AutoSize property can be used to automatically resize the control based on its contents.

See Also SftButton Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.