GridLength Constructor (Double, GridUnitType)
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Sub New ( _
	value As Double, _
	type As GridUnitType _
)

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.

ExceptionCondition
ArgumentException

value is less than 0 or is not a number.

- or -

type is not a valid GridUnitType.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft