RibbonControlLength RibbonControlLength RibbonControlLength RibbonControlLength Struct

定義

表示 RibbonControlSizeDefinition 中的寬度。Represents widths in a RibbonControlSizeDefinition.

public value class RibbonControlLength : IEquatable<System::Windows::Controls::Ribbon::RibbonControlLength>
[System.ComponentModel.TypeConverter(typeof(System.Windows.Controls.Ribbon.RibbonControlLengthConverter))]
public struct RibbonControlLength : IEquatable<System.Windows.Controls.Ribbon.RibbonControlLength>
type RibbonControlLength = struct
Public Structure RibbonControlLength
Implements IEquatable(Of RibbonControlLength)
繼承
RibbonControlLengthRibbonControlLengthRibbonControlLengthRibbonControlLength
屬性
實作

建構函式

RibbonControlLength(Double) RibbonControlLength(Double) RibbonControlLength(Double) RibbonControlLength(Double)

使用絕對值 (以像素為單位) 初始化 RibbonControlLength 結構的新執行個體。Initializes a new instance of the RibbonControlLength structure with an absolute value in pixels.

RibbonControlLength(Double, RibbonControlLengthUnitType) RibbonControlLength(Double, RibbonControlLengthUnitType) RibbonControlLength(Double, RibbonControlLengthUnitType) RibbonControlLength(Double, RibbonControlLengthUnitType)

使用指定的值和長度單位,初始化 RibbonControlLength 結構的新執行個體。Initializes a new instance of the RibbonControlLength structure with the specified value and length unit.

屬性

Auto Auto Auto Auto

取得表示標準自動調整大小模式的 RibbonControlLength 結構。Gets a RibbonControlLength structure that represents the standard automatic sizing mode.

IsAbsolute IsAbsolute IsAbsolute IsAbsolute

取得值,這個值表示這個執行個體是否會根據固定像素或邏輯值調整項目的大小。Gets a value that indicates whether this instance sizes elements based on a fixed pixel or logical value.

IsAuto IsAuto IsAuto IsAuto

取得值,這個值表示此執行個體是否會自動調整項目的大小。Gets a value that indicates whether this instance automatically sizes elements.

IsStar IsStar IsStar IsStar

取得值,這個值表示此執行個體是否會根據可用空間的加權比例,自動調整項目的大小。Gets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space.

RibbonControlLengthUnitType RibbonControlLengthUnitType RibbonControlLengthUnitType RibbonControlLengthUnitType

取得用於決定項目大小計算方式的型別。Gets the type that is used to determine how the size of the element is calculated.

Value Value Value Value

取得 RibbonControlLength 的絕對值,以像素或邏輯單位為單位。Gets the absolute value of the RibbonControlLength in pixels or logical units.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的 RibbonControlLengthDetermines whether the specified object is equal to the current RibbonControlLength.

Equals(RibbonControlLength) Equals(RibbonControlLength) Equals(RibbonControlLength) Equals(RibbonControlLength)

判斷指定的 RibbonControlLength 是否等於目前的 RibbonControlLengthDetermines whether the specified RibbonControlLength is equal to the current RibbonControlLength.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

取得 RibbonControlLength 的雜湊碼。Gets a hash code for the RibbonControlLength.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

運算子

Equality(RibbonControlLength, RibbonControlLength) Equality(RibbonControlLength, RibbonControlLength) Equality(RibbonControlLength, RibbonControlLength) Equality(RibbonControlLength, RibbonControlLength)

比較兩個 RibbonControlLength 結構是否相等。Compares two RibbonControlLength structures for equality.

Inequality(RibbonControlLength, RibbonControlLength) Inequality(RibbonControlLength, RibbonControlLength) Inequality(RibbonControlLength, RibbonControlLength) Inequality(RibbonControlLength, RibbonControlLength)

比較兩個 RibbonControlLength 結構,判斷它們是否不相等。Compares two RibbonControlLength structures to determine whether they are not equal.

適用於