DependencyPropertyDescriptor.FromProperty メソッド

定義

使用されているシグネチャに応じて、指定した DependencyPropertyDescriptor または型のいずれかに基づく PropertyDescriptor を返します。

オーバーロード

FromProperty(DependencyProperty, Type)

指定された依存関係プロパティの DependencyPropertyDescriptor とターゲットの種類を返します。

FromProperty(PropertyDescriptor)

指定された PropertyDescriptorDependencyPropertyDescriptor を返します。

FromProperty(DependencyProperty, Type)

指定された依存関係プロパティの DependencyPropertyDescriptor とターゲットの種類を返します。

public:
 static System::ComponentModel::DependencyPropertyDescriptor ^ FromProperty(System::Windows::DependencyProperty ^ dependencyProperty, Type ^ targetType);
public static System.ComponentModel.DependencyPropertyDescriptor FromProperty (System.Windows.DependencyProperty dependencyProperty, Type targetType);
static member FromProperty : System.Windows.DependencyProperty * Type -> System.ComponentModel.DependencyPropertyDescriptor
Public Shared Function FromProperty (dependencyProperty As DependencyProperty, targetType As Type) As DependencyPropertyDescriptor

パラメーター

dependencyProperty
DependencyProperty

依存関係プロパティの識別子。

targetType
Type

プロパティが設定されているオブジェクトの種類。

戻り値

指定された依存関係プロパティの DependencyPropertyDescriptor

注釈

dependencyProperty 、依存関係プロパティまたは添付プロパティを参照できます。 targetType は、プロパティを設定するオブジェクトの種類です。 依存関係プロパティの場合、その型は の dependencyPropertyOwnerType同じです。 添付プロパティの場合、 targetType は通常、他 DependencyObject の型です。

適用対象

FromProperty(PropertyDescriptor)

指定された PropertyDescriptorDependencyPropertyDescriptor を返します。

public:
 static System::ComponentModel::DependencyPropertyDescriptor ^ FromProperty(System::ComponentModel::PropertyDescriptor ^ property);
public static System.ComponentModel.DependencyPropertyDescriptor FromProperty (System.ComponentModel.PropertyDescriptor property);
static member FromProperty : System.ComponentModel.PropertyDescriptor -> System.ComponentModel.DependencyPropertyDescriptor
Public Shared Function FromProperty (property As PropertyDescriptor) As DependencyPropertyDescriptor

パラメーター

property
PropertyDescriptor

確認対象の PropertyDescriptor

戻り値

property によって記述されているプロパティが依存関係プロパティの場合は、有効な DependencyPropertyDescriptor を返します。 それ以外の場合は、nullDependencyPropertyDescriptor を返します。

注釈

このメソッドは、 のすべてのプロパティのチェックに基づいて を DependencyPropertyDescriptor 取得するためにデザイナー アプリケーションで使用される主なメソッドです PropertyDescriptor

適用対象