GridLength 構造体
定義
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)
- 継承
- 属性
- 実装
注釈
やなどの要素は 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.
XAML 属性の使用方法XAML Attribute Usage
<object property="doubleLength"/>
- または --or-
<object property="autoValue"/>
XAML 値XAML Values
doubleLengthdoubleLength
要素の長さ Double 。メジャーを指定する値か、 デバイスに依存しない単位 (1 単位は 1/96 インチ)device-independent units (1/96th inch per unit) qualifiedDouble (以下を参照) として記述されます。The element's length, described as either a Double value that specifies a デバイスに依存しない単位 (1 単位は 1/96 インチ)device-independent units (1/96th inch per unit) measure, or as a qualifiedDouble (see below).
autoValueautoValue
値 Auto または * で表される要素の長さ。The element's length, described by either the value Auto or *. GridUnitTypeAuto および * の値の詳細については、「」を参照してください。See GridUnitType for more information on the values Auto and *.
qualifiedDoublequalifiedDouble
上記のいずれかのメジャーについて説明した 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 単位は 1/96 インチ)device-independent units (1/96th inch per unit)px
(default) is デバイスに依存しない単位 (1 単位は 1/96 インチ)device-independent units (1/96th inch per unit)
in
はインチ。1in==96pxin
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) |
指定した絶対値 (ピクセル単位) を使用して、GridLength 構造体の新しいインスタンスを初期化します。Initializes a new instance of the GridLength structure using the specified absolute value in pixels. |
GridLength(Double, GridUnitType) |
GridLength 構造体の新しいインスタンスを初期化して、保持する値の種類を指定します。Initializes a new instance of the GridLength structure and specifies what kind of value it holds. |
プロパティ
Auto |
サイズがコンテンツ オブジェクトのサイズ プロパティによって決まる値を保持する GridLength のインスタンスを取得します。Gets an instance of GridLength that holds a value whose size is determined by the size properties of the content object. |
GridUnitType |
GridUnitType の関連付けられている GridLength を取得します。Gets the associated GridUnitType for the GridLength. |
IsAbsolute |
GridLength がピクセルで表される値を保持するかどうかを示す値を取得します。Gets a value that indicates whether the GridLength holds a value that is expressed in pixels. |
IsAuto |
サイズがコンテンツ オブジェクトのサイズ プロパティによって決まる値を GridLength が保持するかどうかを示す値を取得します。Gets a value that indicates whether the GridLength holds a value whose size is determined by the size properties of the content object. |
IsStar |
GridLength が使用可能なスペースの加重比率で表される値を保持するかどうかを示す値を取得します。Gets a value that indicates whether the GridLength holds a value that is expressed as a weighted proportion of available space. |
Value |
Double の値を表す GridLength を取得しますGets a Double that represents the value of the GridLength. |
メソッド
Equals(GridLength) |
指定された GridLength が現在の GridLength と等しいかどうかを判断します。Determines whether the specified GridLength is equal to the current GridLength. |
Equals(Object) |
指定したオブジェクトが現在の GridLength インスタンスと等しいかどうかを判断します。Determines whether the specified object is equal to the current GridLength instance. |
GetHashCode() |
GridLength のハッシュ コードを取得します。Gets a hash code for the GridLength. |
ToString() |
String の GridLength 表現を返します。Returns a String representation of the GridLength. |
演算子
Equality(GridLength, GridLength) |
2 つの GridLength 構造体を比較して、等しいかどうかを確認します。Compares two GridLength structures for equality. |
Inequality(GridLength, GridLength) |
2 つの GridLength 構造体を比較し、それらが等しくないかどうかを確認します。Compares two GridLength structures to determine if they are not equal. |