FormDateTimeControl.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) |
Gets or sets the width of the control. |
width(Int32, Int32) |
width(Int32)
Gets or sets the width of the control.
public:
override int width(int num1);
public override int width (int num1);
override this.width : int -> int
Public Overrides 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.
Applies to
width(Int32, Int32)
public:
override int width(int _value, int _mode);
public override int width (int _value, int _mode);
override this.width : int * int -> int
Public Overrides Function width (_value As Integer, _mode As Integer) As Integer
Parameters
- _value
- Int32
An Integer data type that indicates how the width is calculated; optional.
- _mode
- Int32
An Integer data type that indicates how the width is calculated; optional.