次の方法で共有


SelectionParentPolicy.GetPolicyItems メソッド

既定の GetPolicyItems メソッドをオーバーライドして、指定した選択の一意の親を返します。

名前空間:  Microsoft.Windows.Design.Policies
アセンブリ:  Microsoft.Windows.Design.Interaction (Microsoft.Windows.Design.Interaction.dll 内)

構文

'宣言
Protected Overrides Function GetPolicyItems ( _
    selection As Selection _
) As IEnumerable(Of ModelItem)
protected override IEnumerable<ModelItem> GetPolicyItems(
    Selection selection
)
protected:
virtual IEnumerable<ModelItem^>^ GetPolicyItems(
    Selection^ selection
) override
abstract GetPolicyItems : 
        selection:Selection -> IEnumerable<ModelItem> 
override GetPolicyItems : 
        selection:Selection -> IEnumerable<ModelItem> 
protected override function GetPolicyItems(
    selection : Selection
) : IEnumerable<ModelItem>

パラメーター

戻り値

型: System.Collections.Generic.IEnumerable<ModelItem>
指定された選択に対する一意の親の列挙体。

解説

このポリシーは、選択されたアイテムの直接の親を指定します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

SelectionParentPolicy クラス

Microsoft.Windows.Design.Policies 名前空間

ItemPolicy

SelectionPolicy

FeatureProvider

FeatureConnectorAttribute

その他の技術情報

機能プロバイダーと機能コネクタ

WPF デザイナーの機能拡張について