RibbonControlLength 结构

定义

表示 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)
继承
RibbonControlLength
属性
实现

构造函数

RibbonControlLength(Double)

通过使用以像素为单位的绝对值初始化 RibbonControlLength 结构的新实例。Initializes a new instance of the RibbonControlLength structure with an absolute value in pixels.

RibbonControlLength(Double, RibbonControlLengthUnitType)

用指定的值和长度单元初始化 RibbonControlLength 结构的新实例。Initializes a new instance of the RibbonControlLength structure with the specified value and length unit.

属性

Auto

获取表示标准自动调整大小模式的 RibbonControlLength 结构。Gets a RibbonControlLength structure that represents the standard automatic sizing mode.

IsAbsolute

获取一个值,该值指示此实例是否基于固定像素或逻辑值调整元素大小。Gets a value that indicates whether this instance sizes elements based on a fixed pixel or logical value.

IsAuto

获取指示此实例是否自动调整元素的大小的值。Gets a value that indicates whether this instance automatically sizes elements.

IsStar

获取一个值,该值指示此实例是否基于可用空间的加权比例自动调整元素的大小。Gets a value that indicates whether this instance automatically sizes elements based on a weighted proportion of available space.

RibbonControlLengthUnitType

获取用于确定如何计算元素大小的类型。Gets the type that is used to determine how the size of the element is calculated.

Value

获取 RibbonControlLength 的绝对值(以像素或逻辑单元为单位)。Gets the absolute value of the RibbonControlLength in pixels or logical units.

方法

Equals(Object)

确定指定的对象是否等于当前的 RibbonControlLengthDetermines whether the specified object is equal to the current RibbonControlLength.

Equals(RibbonControlLength)

确定指定的 RibbonControlLength 是否等同于当前的 RibbonControlLengthDetermines whether the specified RibbonControlLength is equal to the current RibbonControlLength.

GetHashCode()

获取 RibbonControlLength 的哈希代码。Gets a hash code for the RibbonControlLength.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

运算符

Equality(RibbonControlLength, RibbonControlLength)

比较两个 RibbonControlLength 结构是否相等。Compares two RibbonControlLength structures for equality.

Inequality(RibbonControlLength, RibbonControlLength)

比较两个 RibbonControlLength 结构以确定它们是否不相等。Compares two RibbonControlLength structures to determine whether they are not equal.

适用于