SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines whether the drop down portion is optimally sized in width.
Get
VB.NET | Boolean = object.OptimalWidth As Boolean |
VB | Boolean = object.OptimalWidth As Boolean |
C#.NET | bool Boolean = object.OptimalWidth; |
VC++ | VARIANT_BOOL Boolean = object->OptimalWidth; VARIANT_BOOL Boolean = object->GetOptimalWidth(); |
C | HRESULT object->get_OptimalWidth(VARIANT_BOOL* Boolean); |
Put
VB.NET | object.OptimalWidth = Boolean As Boolean |
VB | object.OptimalWidth = Boolean As Boolean |
C#.NET | bool object.OptimalWidth = Boolean; |
VC++ | VARIANT_BOOL object->OptimalWidth = Boolean; void object->PutOptimalWidth(VARIANT_BOOL Boolean); |
C | HRESULT object->put_OptimalWidth(VARIANT_BOOL Boolean); |
object
Boolean
Defines whether the drop down portion is optimally sized in width.
Boolean | Description |
---|---|
True | The drop down portion is optimally sized in width. |
False | The drop down portion is not resized. |
The OptimalWidth property defines whether the drop down portion is optimally sized in width.
The OptimalWidth property overrides the DropDown.Width, DropDown.WidthPix and DropDown.WidthPercent properties. When the drop down portion becomes visible, it is optimally sized in width so all data can be displayed without being horizontally clipped. It accomplishes this by displaying as much of the data as possible by using the defined horizontal extent (see Items.HorizontalExtent).
The OptimalWidth property will increase the size of the drop down portion based on its defined width (see DropDown.Width, DropDown.WidthPercent and DropDown.WidthPix) to accommodate as much data as possible, but will not decrease it.
The OptimalWidth property requires the use of the Items.RecalcHorizontalExtent method after all data has been added to determine the horizontal extent.
See Also SftBoxDropDown Object | Object Hierarchy