GridLength Struktur
Definition
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)
- Vererbung
- Attribute
- Implementiert
Hinweise
Elemente wie ColumnDefinition und RowDefinition verwenden diesen Typ, um Breite und Höhe zu beschreiben, um die Variable Verteilung des verfügbaren Speicherplatzes zu unterstützen.Elements such as ColumnDefinition and RowDefinition use this type to describe width and height in order to support variable distribution of available space.
Verwendung von XAML-AttributenXAML Attribute Usage
<object property="doubleLength"/>
- oder --or-
<object property="autoValue"/>
XAML-WerteXAML Values
doubleLengthdoubleLength
Die Länge des Elements, beschrieben als Double Wert, der ein Geräteunabhängige Einheiten (1/96 Zoll pro Einheit)device-independent units (1/96th inch per unit) Measure angibt, oder als qualifiedDouble (siehe unten).The element's length, described as either a Double value that specifies a Geräteunabhängige Einheiten (1/96 Zoll pro Einheit)device-independent units (1/96th inch per unit) measure, or as a qualifiedDouble (see below).
autoValueautoValue
Die Länge des Elements, das entweder durch den Wert "Auto" oder "*" beschrieben wird.The element's length, described by either the value Auto or *. Weitere GridUnitType Informationen zu den Werten "Auto" und "*" finden Sie unter.See GridUnitType for more information on the values Auto and *.
qualifiedDoublequalifiedDouble
Ein doppelter Wert, wie oben für jedes der Measures beschrieben, gefolgt von einer der folgenden Einheiten Deklarations Zeichenfolgen in
: cm
px
, 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
(Standard) istGeräteunabhängige Einheiten (1/96 Zoll pro Einheit)device-independent units (1/96th inch per unit)px
(default) is Geräteunabhängige Einheiten (1/96 Zoll pro Einheit)device-independent units (1/96th inch per unit)
in
ist Zoll; 1In = = 96pxin
is inches; 1in==96px
cm
ist Zentimeter; 1cm = = (96/2,54) pxcm
is centimeters; 1cm==(96/2.54) px
pt
ist Punkte 1pt = = (96/72) pxpt
is points; 1pt==(96/72) px
Konstruktoren
GridLength(Double) |
Initialisiert eine neue Instanz der GridLength-Struktur unter Verwendung des angegebenen absoluten Werts in Pixel.Initializes a new instance of the GridLength structure using the specified absolute value in pixels. |
GridLength(Double, GridUnitType) |
Initialisiert eine neue Instanz der GridLength-Struktur und gibt die Art des darin enthaltenen Werts an.Initializes a new instance of the GridLength structure and specifies what kind of value it holds. |
Eigenschaften
Auto |
Ruft eine Instanz von GridLength ab, die einen Wert enthält, dessen Größe durch die Größeneigenschaften des Inhaltsobjekts bestimmt wird.Gets an instance of GridLength that holds a value whose size is determined by the size properties of the content object. |
GridUnitType |
Ruft den zugeordneten GridUnitType für die GridLength ab.Gets the associated GridUnitType for the GridLength. |
IsAbsolute |
Ruft einen Wert ab, der angibt, ob die GridLength einen in Pixel ausgedrückten Wert enthält.Gets a value that indicates whether the GridLength holds a value that is expressed in pixels. |
IsAuto |
Ruft einen Wert ab, der angibt, ob die GridLength einen Wert enthält, dessen Größe durch die Größeneigenschaften des Inhaltsobjekts bestimmt wird.Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object. |
IsStar |
Ruft einen Wert ab, der angibt, ob die GridLength einen Wert enthält, der als gewichtete Proportion des verfügbaren Raums ausgedrückt wird.Gets a value that indicates whether the GridLength holds a value that is expressed as a weighted proportion of available space. |
Value |
Ruft einen Double-Wert ab, der den Wert der GridLength darstellt.Gets a Double that represents the value of the GridLength. |
Methoden
Equals(GridLength) |
Bestimmt, ob das angegebene GridLength und das aktuelle GridLength gleich sind.Determines whether the specified GridLength is equal to the current GridLength. |
Equals(Object) |
Bestimmt, ob das angegebene Objekt mit der aktuellen GridLength-Instanz übereinstimmt.Determines whether the specified object is equal to the current GridLength instance. |
GetHashCode() |
Ruft einen Hashcode für die GridLength ab.Gets a hash code for the GridLength. |
ToString() |
Gibt eine String-Darstellung der GridLength zurück.Returns a String representation of the GridLength. |
Operatoren
Equality(GridLength, GridLength) |
Vergleicht zwei GridLength-Strukturen auf Gleichheit.Compares two GridLength structures for equality. |
Inequality(GridLength, GridLength) |
Vergleicht zwei GridLength-Strukturen auf Ungleichheit.Compares two GridLength structures to determine if they are not equal. |