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>[]) 使用指定的 KeyAttributePair<T> 執行個體,初始化 NumberIncrementsAttribute 類別的新執行個體。
公用方法 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 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 _Attribute.GetIDsOfNames 將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.GetTypeInfo 擷取物件的型別資訊,可以用來取得介面的型別資訊。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.GetTypeInfoCount 擷取物件提供的型別資訊介面數目 (0 或 1)。 (繼承自 Attribute)。
明確介面實作私用方法 _Attribute.Invoke 提供物件所公開的屬性和方法的存取權。 (繼承自 Attribute)。

回頁首

備註

當透過拖曳變更數字時,每個像素會使用其中一個增量來決定對數字值的總變更。

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.Windows.Design.PropertyEditing 命名空間