FormDesign.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
- _mode
- Int32
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. | Width calculation. |
---|---|
-1 Exact. | The exact width in pixels of the controls is used. |
0 Auto. | The width of the control is calculated automatically and the value parameter is ignored. |
1 Column width. | The layout of the form determines the width of the control. |
The width and width calculation mode can be set separately.