GridLength Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
[<System.ComponentModel.TypeConverter(typeof(System.Windows.GridLengthConverter))>]
type GridLength = struct
Public Structure GridLength
Implements IEquatable(Of GridLength)
- Inheritance
- Attributes
- Implements
Elements such as ColumnDefinition and RowDefinition use this type to describe width and height in order to support variable distribution of available space.
<object property="doubleLength"/>
-or-
<object property="autoValue"/>
doubleLength
The element's length, described as either a Double value that specifies a device-independent units (1/96th inch per unit) measure, or as a qualifiedDouble (see below).
autoValue
The element's length, described by either the value Auto or *. See GridUnitType for more information on the values Auto and *.
qualifiedDouble
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
(default) is device-independent units (1/96th inch per unit)
in
is inches; 1in==96px
cm
is centimeters; 1cm==(96/2.54) px
pt
is points; 1pt==(96/72) px
Grid |
Initializes a new instance of the GridLength structure and specifies what kind of value it holds. |
Grid |
Initializes a new instance of the GridLength structure using the specified absolute value in pixels. |
Auto |
Gets an instance of GridLength that holds a value whose size is determined by the size properties of the content object. |
Grid |
Gets the associated GridUnitType for the GridLength. |
Is |
Gets a value that indicates whether the GridLength holds a value that is expressed in pixels. |
Is |
Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object. |
Is |
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. |
Equals(Grid |
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. |
Get |
Gets a hash code for the GridLength. |
To |
Returns a String representation of the GridLength. |
Equality(Grid |
Compares two GridLength structures for equality. |
Inequality(Grid |
Compares two GridLength structures to determine if they are not equal. |
Produto | Versões |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: