GridLength Constructor (Double, GridUnitType)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the GridLength structure and specifies what kind of value it holds.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- value
- Type: System.Double
The initial value of this instance of GridLength.
- type
- Type: System.Windows.GridUnitType
The GridUnitType held by this instance of GridLength.
| Exception | Condition |
|---|---|
| ArgumentException | value is less than 0 or is not a number. - or - type is not a valid GridUnitType. |
Show: