GridLength Структура

Определение

Represents the length of elements that explicitly support Star unit types.Represents the length of elements that explicitly support Star unit types.

public value class GridLength : IEquatable<System::Windows::GridLength>
[System.ComponentModel.TypeConverter(typeof(System.Windows.GridLengthConverter))]
public struct GridLength : IEquatable<System.Windows.GridLength>
type GridLength = struct
Public Structure GridLength
Implements IEquatable(Of GridLength)
Наследование
GridLength
Атрибуты
Реализации

Комментарии

Такие элементы, как ColumnDefinition и RowDefinition, используют этот тип для описания ширины и высоты для поддержки переменного распределения доступного пространства.Elements such as ColumnDefinition and RowDefinition use this type to describe width and height in order to support variable distribution of available space.

Использование атрибута XAMLXAML Attribute Usage

<object property="doubleLength"/>  

-или--or-

<object property="autoValue"/>  

Значения XAMLXAML Values

даублеленгсdoubleLength
Длина элемента, описываемая как Double значение, определяющее меру аппаратно-независимые единицы (1/96 дюйма на единицу)device-independent units (1/96th inch per unit), или как куалифиеддаубле (см. ниже).The element's length, described as either a Double value that specifies a аппаратно-независимые единицы (1/96 дюйма на единицу)device-independent units (1/96th inch per unit) measure, or as a qualifiedDouble (see below).

автозначениеautoValue
Длина элемента, описываемая либо значением Auto, либо *.The element's length, described by either the value Auto or *. Дополнительные сведения о значениях Auto и * см. в разделе GridUnitType.See GridUnitType for more information on the values Auto and *.

куалифиеддаублеqualifiedDouble
Значение типа Double , описанное выше для любой меры, за которым следует одна из следующих строк объявления единицы: px, in, cm, pt.A double value as described above for any of the measures, followed by one of the following unit declaration strings: px, in, cm, pt.

px (по умолчанию) аппаратно-независимые единицы (1/96 дюйма на единицу)device-independent units (1/96th inch per unit)px (default) is аппаратно-независимые единицы (1/96 дюйма на единицу)device-independent units (1/96th inch per unit)

in в дюймах; 1in = = 96 пикселейin is inches; 1in==96px

cm — сантиметры; 1cm = = (96/2,54) pxcm is centimeters; 1cm==(96/2.54) px

pt — это точки; выбрано 1pt = = (96/72) pxpt is points; 1pt==(96/72) px

Конструкторы

GridLength(Double)

Initializes a new instance of the GridLength structure using the specified absolute value in pixels.Initializes a new instance of the GridLength structure using the specified absolute value in pixels.

GridLength(Double, GridUnitType)

Initializes a new instance of the GridLength structure and specifies what kind of value it holds.Initializes a new instance of the GridLength structure and specifies what kind of value it holds.

Свойства

Auto

Gets an instance of GridLength that holds a value whose size is determined by the size properties of the content object.Gets an instance of GridLength that holds a value whose size is determined by the size properties of the content object.

GridUnitType

Gets the associated GridUnitType for the GridLength.Gets the associated GridUnitType for the GridLength.

IsAbsolute

Gets a value that indicates whether the GridLength holds a value that is expressed in pixels.Gets a value that indicates whether the GridLength holds a value that is expressed in pixels.

IsAuto

Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object.Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object.

IsStar

Gets a value that indicates whether the GridLength holds a value that is expressed as a weighted proportion of available space.Gets a value that indicates whether the GridLength holds a value that is expressed as a weighted proportion of available space.

Value

Gets a Double that represents the value of the GridLength.Gets a Double that represents the value of the GridLength.

Методы

Equals(GridLength)

Determines whether the specified GridLength is equal to the current GridLength.Determines whether the specified GridLength is equal to the current GridLength.

Equals(Object)

Determines whether the specified object is equal to the current GridLength instance.Determines whether the specified object is equal to the current GridLength instance.

GetHashCode()

Gets a hash code for the GridLength.Gets a hash code for the GridLength.

ToString()

Returns a String representation of the GridLength.Returns a String representation of the GridLength.

Операторы

Equality(GridLength, GridLength)

Compares two GridLength structures for equality.Compares two GridLength structures for equality.

Inequality(GridLength, GridLength)

Compares two GridLength structures to determine if they are not equal.Compares two GridLength structures to determine if they are not equal.

Применяется к

Дополнительно