NumberIncrementsAttribute 类

包含有关用于更改一个数值的增量的信息。

继承层次结构

System.Object
  System.Attribute
    Microsoft.Windows.Design.PropertyEditing.NumberIncrementsAttribute

命名空间:  Microsoft.Windows.Design.PropertyEditing
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field)> _
Public NotInheritable Class NumberIncrementsAttribute _
    Inherits Attribute _
    Implements IIndexableAttribute
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class NumberIncrementsAttribute : Attribute, 
    IIndexableAttribute
[AttributeUsageAttribute(AttributeTargets::Property|AttributeTargets::Field)]
public ref class NumberIncrementsAttribute sealed : public Attribute, 
    IIndexableAttribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field)>]
type NumberIncrementsAttribute =  
    class
        inherit Attribute
        interface IIndexableAttribute
    end
public final class NumberIncrementsAttribute extends Attribute implements IIndexableAttribute

NumberIncrementsAttribute 类型公开以下成员。

构造函数

  名称 说明
公共方法 NumberIncrementsAttribute() 初始化 NumberIncrementsAttribute 类的新实例。
公共方法 NumberIncrementsAttribute(array<KeyAttributePair<NumberIncrementsAttribute>[]) 使用指定的 NumberIncrementsAttribute 实例初始化 KeyAttributePair<T> 类的新实例。
公共方法 NumberIncrementsAttribute(Nullable<Double>, Nullable<Double>, Nullable<Double>) 使用指定的增量值来初始化 NumberIncrementsAttribute 类的新实例。
公共方法 NumberIncrementsAttribute(Nullable<Double>, Nullable<Double>, Nullable<Double>, array<KeyAttributePair<NumberIncrementsAttribute>[]) 使用指定的参数初始化 NumberIncrementsAttribute 类的新实例。

页首

属性

  名称 说明
公共属性 DefaultChange 获取默认增量的值。
公共属性 Item 使用指定的键获取 NumberIncrementsAttribute。
公共属性 LargeChange 获取大增量的值。
公共属性 SmallChange 获取小增量的值。
公共属性 TypeId 当在派生类中实现时,获取该 Attribute 的唯一标识符。 (继承自 Attribute。)

页首

方法

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

页首

显式接口实现

  名称 说明
显式接口实现私有方法 _Attribute.GetIDsOfNames 将一组名称映射为对应的一组调度标识符。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.GetTypeInfo 检索对象的类型信息,然后可以使用该信息获取接口的类型信息。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.GetTypeInfoCount 检索对象提供的类型信息接口的数量(0 或 1)。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.Invoke 提供对某一对象公开的属性和方法的访问。 (继承自 Attribute。)

页首

备注

在通过拖动来更改数字时,将对每个像素使用其中的一个增量以确定对数值的总更改。

线程安全

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

请参见

参考

Microsoft.Windows.Design.PropertyEditing 命名空间