GridLength 생성자

정의

오버로드

GridLength(Double)

지정된 픽셀 단위 절대값을 사용하여 GridLength 구조체의 새 인스턴스를 초기화합니다.

GridLength(Double, GridUnitType)

GridLength 구조체의 새 인스턴스를 초기화하고 보유할 값의 종류를 지정합니다.

설명

이 구조체는 WinRT (Windows 런타임) 구조체의 .net 프로젝션을 나타냅니다 GridLength . 자세한 내용은 UWP API 참조에서 Gridlength 를 참조 하세요.

GridLength(Double)

지정된 픽셀 단위 절대값을 사용하여 GridLength 구조체의 새 인스턴스를 초기화합니다.

public:
 GridLength(double pixels);
public GridLength (double pixels);
new Windows.UI.Xaml.GridLength : double -> Windows.UI.Xaml.GridLength
Public Sub New (pixels As Double)

매개 변수

pixels
Double

값으로 설정할 픽셀의 절대 수입니다.

적용 대상

GridLength(Double, GridUnitType)

GridLength 구조체의 새 인스턴스를 초기화하고 보유할 값의 종류를 지정합니다.

public:
 GridLength(double value, Windows::UI::Xaml::GridUnitType type);
public GridLength (double value, Windows.UI.Xaml.GridUnitType type);
new Windows.UI.Xaml.GridLength : double * Windows.UI.Xaml.GridUnitType -> Windows.UI.Xaml.GridLength
Public Sub New (value As Double, type As GridUnitType)

매개 변수

value
Double

GridLength의 이 인스턴스의 초기 값입니다.

type
GridUnitType

GridUnitType의 이 인스턴스가 보유하는 GridLength입니다.

예외

value가 0보다 작거나 숫자가 아닙니다.

또는

type은 유효한 GridUnitType이 아닙니다.

적용 대상