GridLength Konstruktory

Definice

Přetížení

GridLength(Double)

Inicializuje novou instanci GridLength struktury pomocí zadané absolutní hodnoty v pixelech.

GridLength(Double, GridUnitType)

Inicializuje novou instanci GridLength struktury a určí, jaký druh hodnoty má obsahovat.

Poznámky

tato struktura představuje projekci .net struktury prostředí Windows Runtime (WinRT) GridLength . Další informace najdete v tématu GridLength v referenčních informacích k rozhraní API UWP.

GridLength(Double)

Inicializuje novou instanci GridLength struktury pomocí zadané absolutní hodnoty v pixelech.

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

Parametry

pixels
Double

Absolutní počet pixelů, který má být vytvořen jako hodnota.

Platí pro

GridLength(Double, GridUnitType)

Inicializuje novou instanci GridLength struktury a určí, jaký druh hodnoty má obsahovat.

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)

Parametry

value
Double

Počáteční hodnota této instance GridLength .

type
GridUnitType

Je GridUnitType držena touto instancí GridLength .

Výjimky

value je menší než 0 nebo není číslo.

-nebo-

type není platná GridUnitType .

Platí pro