DependencyPropertyDescriptor 類別

定義

提供 PropertyDescriptor 的擴充,說明相依性屬性的其他屬性特性。

public ref class DependencyPropertyDescriptor sealed : System::ComponentModel::PropertyDescriptor
public sealed class DependencyPropertyDescriptor : System.ComponentModel.PropertyDescriptor
type DependencyPropertyDescriptor = class
    inherit PropertyDescriptor
Public NotInheritable Class DependencyPropertyDescriptor
Inherits PropertyDescriptor
繼承
DependencyPropertyDescriptor

備註

這個類別主要是由設計工具應用程式使用。 這些應用程式可能需要透過屬性視窗或其他工具來編輯屬性值來報告相依性屬性特性。

若要檢查特定屬性,以判斷其是否可 DependencyPropertyDescriptor 做為 PropertyDescriptor、呼叫 DependencyPropertyDescriptor.FromProperty(PropertyDescriptor)DependencyPropertyDescriptor.FromName。 如果任一方法傳 null回 ,則屬性不是相依性屬性。 如果方法傳回有效的 DependencyPropertyDescriptor ,則 屬性是相依性屬性。

屬性

AttributeArray

取得或設定屬性的陣列。

(繼承來源 MemberDescriptor)
Attributes

取得這個成員的屬性集合。

Category

取得成員所屬的分類名稱,如 CategoryAttribute 中所指定的。

ComponentType

取得這個屬性所繫結的元件型別。

Converter

取得這個屬性的型別轉換子。

DependencyProperty

傳回相依性屬性的識別項。

Description

取得成員的描述,如 DescriptionAttribute 中所指定的。

DesignerCoerceValueCallback

取得或設定回呼,設計工具使用這個回呼修改相依性屬性的有效值,然後再將相依性屬性值儲存在相依性屬性引擎。

DesignTimeOnly

取得值,表示這個成員是否只在設計階段設定,如 DesignOnlyAttribute 中所指定的。

DisplayName

取得可在視窗 (例如 [屬性] 視窗) 中顯示的名稱。

IsAttached

取得值,指出屬性是否註冊為附加屬性,並正透過附加使用方式使用中。

IsBrowsable

取得值,這個值表示屬性上的 BrowsableAttribute 值。

IsLocalizable

取得值,表示這個屬性是否應該當地語系化,如 LocalizableAttribute 中指定的。

IsReadOnly

取得值,表示這個屬性是否為唯讀。

Metadata

取得與相依性屬性相關聯的中繼資料。

Name

取得成員的名稱。

(繼承來源 MemberDescriptor)
NameHashCode

取得成員名稱的雜湊程式碼,如 GetHashCode() 中所指定的。

(繼承來源 MemberDescriptor)
PropertyType

取得相依性屬性的代表 Type

SerializationVisibility

取得值,表示這個屬性是否應該序列化,如 DesignerSerializationVisibilityAttribute 中指定的。

(繼承來源 PropertyDescriptor)
SupportsChangeEvents

指示這個屬性的數值變更告知是否可能來自屬性描述項之外 (例如來自元件本身),或者告知只會來自 SetValue(Object, Object) 的直接呼叫。

方法

AddValueChanged(Object, EventHandler)

使其他物件能在這個屬性變更時受到告知。

CanResetValue(Object)

傳回值,表示重設物件是否變更其值。

CreateAttributeCollection()

使用傳遞給建構函式的屬性陣列,建立屬性的集合。

(繼承來源 MemberDescriptor)
CreateInstance(Type)

建立指定類型的執行個體。

(繼承來源 PropertyDescriptor)
Equals(Object)

比較兩個 DependencyPropertyDescriptor 執行個體是否相等。

FillAttributes(IList)

PropertyDescriptor 的屬性加入至父類別中的指定屬性清單。

(繼承來源 PropertyDescriptor)
FromName(String, Type, Type)

傳回所提供屬性名稱的 DependencyPropertyDescriptor

FromName(String, Type, Type, Boolean)

傳回所提供屬性名稱的 DependencyPropertyDescriptor

FromProperty(DependencyProperty, Type)

傳回所提供之相依性屬性和目標類型的 DependencyPropertyDescriptor

FromProperty(PropertyDescriptor)

傳回所提供 PropertyDescriptorDependencyPropertyDescriptor

GetChildProperties()

傳回預設的 PropertyDescriptorCollection

(繼承來源 PropertyDescriptor)
GetChildProperties(Attribute[])

使用指定的屬性陣列做為篩選條件,傳回 PropertyDescriptorCollection

(繼承來源 PropertyDescriptor)
GetChildProperties(Object)

傳回指定物件的 PropertyDescriptorCollection

(繼承來源 PropertyDescriptor)
GetChildProperties(Object, Attribute[])

傳回 PropertyDescriptorCollection

GetEditor(Type)

取得指定型別的編輯器。

GetHashCode()

傳回這個 DependencyPropertyDescriptor 的雜湊程式碼。

GetInvocationTarget(Type, Object)

這個方法會傳回應該在成員的引動過程使用的物件。

(繼承來源 PropertyDescriptor)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetTypeFromName(String)

使用其名稱以傳回型別。

(繼承來源 PropertyDescriptor)
GetValue(Object)

傳回元件上屬性的目前值。

GetValueChangedHandler(Object)

擷取特定元件的目前事件處理程式集 ValueChanged

(繼承來源 PropertyDescriptor)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
OnValueChanged(Object, EventArgs)

ValueChanged引發您實作的事件。

(繼承來源 PropertyDescriptor)
RemoveValueChanged(Object, EventHandler)

使其他物件能在這個屬性變更時受到告知。

ResetValue(Object)

將元件的這個屬性值重設為預設值。

SetValue(Object, Object)

將元件的值設定為不同的值。

ShouldSerializeValue(Object)

指出這個屬性值是否需要由序列化處理序保存。

ToString()

將這個執行個體的值轉換為它的相等字串表示。

適用於