GridLengthHelper.FromValueAndType(Double, GridUnitType) Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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.