GridLength Construtores
Definição
Sobrecargas
| GridLength(Double) |
Inicializa uma nova instância da estrutura GridLength usando o valor absoluto especificado em pixels.Initializes a new instance of the GridLength structure using the specified absolute value in pixels. |
| GridLength(Double, GridUnitType) |
Inicializa uma nova instância da estrutura GridLength e especifica o tipo de valor que ela contém.Initializes a new instance of the GridLength structure and specifies what kind of value it holds. |
Comentários
Essa estrutura representa a projeção .NET da estrutura Windows Runtime (WinRT) GridLength .This struct represents the .NET projection of the Windows Runtime (WinRT) GridLength struct. Para obter mais informações, consulte GridLength na referência da API UWP.For more information, see GridLength in the UWP API reference.
GridLength(Double)
Inicializa uma nova instância da estrutura GridLength usando o valor absoluto especificado em pixels.Initializes a new instance of the GridLength structure using the specified absolute value in pixels.
public:
GridLength(double pixels);
public GridLength (double pixels);
new Windows.UI.Xaml.GridLength : double -> Windows.UI.Xaml.GridLength
Public Sub New (pixels As Double)
Parâmetros
- pixels
- Double
A contagem absoluta de pixels a ser estabelecida como o valor.The absolute count of pixels to establish as the value.
Aplica-se a
GridLength(Double, GridUnitType)
Inicializa uma nova instância da estrutura GridLength e especifica o tipo de valor que ela contém.Initializes a new instance of the GridLength structure and specifies what kind of value it holds.
public:
GridLength(double value, Windows::UI::Xaml::GridUnitType type);
public GridLength (double value, Windows.UI.Xaml.GridUnitType type);
new Windows.UI.Xaml.GridLength : double * Windows.UI.Xaml.GridUnitType -> Windows.UI.Xaml.GridLength
Public Sub New (value As Double, type As GridUnitType)
Parâmetros
- value
- Double
O valor inicial desta instância de GridLength.The initial value of this instance of GridLength.
- type
- GridUnitType
O GridUnitType mantido por esta instância de GridLength.The GridUnitType held by this instance of GridLength.
Exceções
O value é menor que 0 ou não é um número.value is less than 0 or is not a number.
- ou --or-
type não é um GridUnitType válido.type is not a valid GridUnitType.