DependencyPropertyDescriptor.FromProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
使用される署名に応じて、指定されたPropertyDescriptorまたは指定された型に基づいて、DependencyPropertyDescriptorを返します。
オーバーロード
| 名前 | 説明 |
|---|---|
| FromProperty(DependencyProperty, Type) |
指定された依存関係プロパティとターゲット型の DependencyPropertyDescriptor を返します。 |
| FromProperty(PropertyDescriptor) |
指定されたPropertyDescriptorのDependencyPropertyDescriptorを返します。 |
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 は、プロパティを設定するオブジェクトの型です。 依存関係プロパティの場合、その型はdependencyPropertyのOwnerTypeと同じです。 添付プロパティの場合、 targetType は通常、他の DependencyObject 型です。
適用対象
FromProperty(PropertyDescriptor)
指定されたPropertyDescriptorのDependencyPropertyDescriptorを返します。
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を返します。
注釈
このメソッドは、デザイナー アプリケーションが、PropertyDescriptorのすべてのプロパティのチェックに基づいてDependencyPropertyDescriptorを取得するために使用される主なメソッドです。