GridLength Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la GridLength structure.
Surcharges
| Nom | Description |
|---|---|
| GridLength(Double) |
Initialise une nouvelle instance de la GridLength structure à l’aide de la valeur absolue spécifiée en pixels. |
| GridLength(Double, GridUnitType) |
Initialise une nouvelle instance de la GridLength structure et spécifie le type de valeur qu’elle contient. |
GridLength(Double)
Initialise une nouvelle instance de la GridLength structure à l’aide de la valeur absolue spécifiée en pixels.
public:
GridLength(double pixels);
public GridLength(double pixels);
new System.Windows.GridLength : double -> System.Windows.GridLength
Public Sub New (pixels As Double)
Paramètres
- pixels
- Double
Nombre de pixels indépendants de l’appareil (96 pixels par pouce).
Exceptions
pixels est égal à NegativeInfinity, PositiveInfinityou NaN.
S’applique à
GridLength(Double, GridUnitType)
Initialise une nouvelle instance de la GridLength structure et spécifie le type de valeur qu’elle contient.
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)
Paramètres
- value
- Double
Valeur initiale de cette instance de GridLength.
- type
- GridUnitType
Détenu GridUnitType par cette instance de GridLength.
Exceptions
value est égal à NegativeInfinity, PositiveInfinityou NaN.