RibbonControlLength 结构

表示 RibbonControlSizeDefinition 中的宽度。

命名空间:  Microsoft.Windows.Controls.Ribbon
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
<TypeConverterAttribute(GetType(RibbonControlLengthConverter))> _
Public Structure RibbonControlLength _
    Implements IEquatable(Of RibbonControlLength)
[TypeConverterAttribute(typeof(RibbonControlLengthConverter))]
public struct RibbonControlLength : IEquatable<RibbonControlLength>
[TypeConverterAttribute(typeof(RibbonControlLengthConverter))]
public value class RibbonControlLength : IEquatable<RibbonControlLength>
[<Sealed>]
[<TypeConverterAttribute(typeof(RibbonControlLengthConverter))>]
type RibbonControlLength =  
    struct
        interface IEquatable<RibbonControlLength>
    end
JScript 支持使用结构,但是不支持新结构的声明。

RibbonControlLength 类型公开以下成员。

构造函数

  名称 说明
公共方法 RibbonControlLength(Double) 通过使用以像素为单位的绝对值初始化 RibbonControlLength 结构的新实例。
公共方法 RibbonControlLength(Double, RibbonControlLengthUnitType) 用指定的值和长度单元初始化 RibbonControlLength 结构的新实例。

页首

属性

  名称 说明
公共属性静态成员 Auto 获取表示标准自动大小调整模式的 RibbonControlLength 结构。
公共属性 IsAbsolute 获取一个值,该值指示此实例是否基于固定像素或逻辑值调整元素大小。
公共属性 IsAuto 获取指示此实例是否自动调整元素的大小的值。
公共属性 IsStar 获取一个值,该值指示此实例是否基于可用空间的加权比例自动调整元素的大小。
公共属性 RibbonControlLengthUnitType 获取用于确定如何计算元素大小的类型。
公共属性 Value 获取 RibbonControlLength 的绝对值(以像素或逻辑单元为单位)。

页首

方法

  名称 说明
公共方法 Equals(Object) 确定指定的对象是否等于当前的 RibbonControlLength。 (重写 ValueType.Equals(Object)。)
公共方法 Equals(RibbonControlLength) 确定指定的 RibbonControlLength 是否等于当前的 RibbonControlLength。
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 获取 RibbonControlLength 的哈希代码。 (重写 ValueType.GetHashCode()。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (重写 ValueType.ToString()。)

页首

运算符

  名称 说明
公共运算符静态成员 Equality 比较两个 RibbonControlLength 结构是否相等。
公共运算符静态成员 Inequality 比较两个 RibbonControlLength 结构以确定它们是否不相等。

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Windows.Controls.Ribbon 命名空间