GridLength Konstruktorer

Definition

Initierar en ny instans av GridLength strukturen.

Överlagringar

Name Description
GridLength(Double)

Initierar en ny instans av GridLength strukturen med det angivna absoluta värdet i bildpunkter.

GridLength(Double, GridUnitType)

Initierar en ny instans av strukturen och anger vilken typ av värde den GridLength har.

GridLength(Double)

Initierar en ny instans av GridLength strukturen med det angivna absoluta värdet i bildpunkter.

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

Parametrar

pixels
Double

Antalet enhetsoberoende pixlar (96 bildpunkter per tum).

Undantag

Gäller för

GridLength(Double, GridUnitType)

Initierar en ny instans av strukturen och anger vilken typ av värde den GridLength har.

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

Parametrar

value
Double

Det ursprungliga värdet för den här instansen av GridLength.

type
GridUnitType

Den GridUnitType som innehas av den här instansen av GridLength.

Undantag

Se även

Gäller för