GridLengthHelper.FromPixels(Double) Methode

Definition

Erstellt einen neuen GridLength-Wert basierend auf einer festen Anzahl von Pixeln. C# und Microsoft Visual Basic-Code sollten stattdessen den GridLength(Double)- Konstruktor verwenden.

public:
 static GridLength FromPixels(double pixels);
 static GridLength FromPixels(double const& pixels);
public static GridLength FromPixels(double pixels);
function fromPixels(pixels)
Public Shared Function FromPixels (pixels As Double) As GridLength

Parameter

pixels
Double

double

Die anzugebende Pixelhöhe oder -breite.

Gibt zurück

Das erstellte GridLength.

Gilt für: