FormControl.width 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
width(Int32, Int32) | |
width(Int32) |
Gets or sets the width of the control. |
width(Int32, Int32)
public:
virtual int width(int _value, int _mode);
public virtual int width (int _value, int _mode);
abstract member width : int * int -> int
override this.width : int * int -> int
Public Overridable Function width (_value As Integer, _mode As Integer) As Integer
Parameters
- _value
- Int32
An integer value that indicates how the width is calculated; optional.
- _mode
- Int32
An integer value that indicates how the width is calculated; optional.
Returns
Applies to
width(Int32)
Gets or sets the width of the control.
public:
virtual int width(int num1);
public virtual int width (int num1);
abstract member width : int -> int
override this.width : int -> int
Public Overridable Function width (num1 As Integer) As Integer
Parameters
- num1
- Int32
Returns
The width of the control in pixels.
Remarks
Exact mode is used if the value parameter is omitted. Calculate the width according to the following table.
Mode | Height calculation |
---|---|
Exact (-1) | The exact height of the control in pixels is used. |
Auto (0) | The height of the control is calculated automatically, and the value parameter is ignored. |
Column height (1) | The layout of the form determines the height of the control. |
The width and width calculation mode can be set separately.