Compartir a través de


GridLengthHelper.FromValueAndType(Double, GridUnitType) Método

Definición

Crea un nuevo valor GridLength basado en un número posible de píxeles y un GridUnitType. El código de C# debe usar el constructor GridLength(Double,GridUnitType) en su lugar.

public:
 static GridLength FromValueAndType(double value, GridUnitType type);
 static GridLength FromValueAndType(double const& value, GridUnitType const& type);
public static GridLength FromValueAndType(double value, GridUnitType type);
function fromValueAndType(value, type)
Public Shared Function FromValueAndType (value As Double, type As GridUnitType) As GridLength

Parámetros

value
Double

double

Valor numérico. Puede ser un alto o ancho de píxeles que se va a especificar, si type se especifica como Pixel, o un factor, si type se especifica como Star. Este valor se omite si type se especifica como Auto.

type
GridUnitType

Valor de la enumeración que especifica qué tipo de unidad representa GridLength .

Devoluciones

El objeto GridLength creado.

Se aplica a