FormComboBoxControl.widthValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
widthValue() |
Gets or sets the width of the control. |
widthValue(Int32) |
widthValue()
Gets or sets the width of the control.
public:
override int widthValue();
public override int widthValue ();
override this.widthValue : unit -> int
Public Overrides Function widthValue () As Integer
Returns
The width of the control in pixels.
Remarks
To change the width of the control, use the Exact width calculation mode.
The following example shows how to return and set the width value of a form combo box control.
int nWidthValue;
// The ctrl variable was previously assigned
// as a form combo box control variable.
// Retrieve the width value.
nWidthValue = ctrl.widthValue();
// Set the width value.
ctrl.widthMode(-1);
ctrl.widthValue(160);
Applies to
widthValue(Int32)
public:
override int widthValue(int _value);
public override int widthValue (int _value);
override this.widthValue : int -> int
Public Overrides Function widthValue (_value As Integer) As Integer
Parameters
- _value
- Int32
An integer value that specifies the width in pixels; optional.