Share via


GridLengthHelper.FromPixels(Double) Método

Definición

Crea un nuevo valor GridLength basado en un número fijo de píxeles. El código de C# y Microsoft Visual Basic deben usar el constructor GridLength(Double) en su lugar.

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

Parámetros

pixels
Double

double

Alto o ancho de píxeles que se va a especificar.

Devoluciones

El objeto GridLength creado.

Se aplica a