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作為 ,請呼叫 ,或 DependencyPropertyDescriptor.FromNameDependencyPropertyDescriptor.FromProperty(PropertyDescriptor)PropertyDescriptor 若任一方法回傳 null,則該性質不屬於相依性質。 若方法回傳有效 DependencyPropertyDescriptor ,則該屬性為相依性質。

屬性

名稱 Description
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)

方法

名稱 Description
AddValueChanged(Object, EventHandler)

可讓其他物件在此屬性變更時收到通知。

CanResetValue(Object)

回傳重置物件是否改變其值。

CreateAttributeCollection()

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

(繼承來源 MemberDescriptor)
CreateInstance(Type)

建立指定型別的實例。

(繼承來源 PropertyDescriptor)
Equals(Object)

比較兩個 DependencyPropertyDescriptor 實例以表示相等。

FillAttributes(IList)

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

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

回傳 a DependencyPropertyDescriptor 以取得的物業名稱。

FromName(String, Type, Type)

回傳 a DependencyPropertyDescriptor 以取得的物業名稱。

FromProperty(DependencyProperty, Type)

回傳 DependencyPropertyDescriptor 給出的依賴屬性與目標類型。

FromProperty(PropertyDescriptor)

回傳 a DependencyPropertyDescriptor 以取得 。PropertyDescriptor

GetChildProperties()

回傳預設 PropertyDescriptorCollection的 。

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

回傳 a PropertyDescriptorCollection 使用指定的屬性陣列作為過濾器。

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

傳回 PropertyDescriptorCollection.

GetChildProperties(Object)

對於給定物件回傳 a PropertyDescriptorCollection

(繼承來源 PropertyDescriptor)
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()

將這個實例的值轉換為其相等的字串表示。

適用於