次の方法で共有


DesignerView.FromContext メソッド

指定したコンテキストに格納されているデザイナー ビューを返します。

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

構文

'宣言
Public Shared Function FromContext ( _
    context As EditingContext _
) As DesignerView
public static DesignerView FromContext(
    EditingContext context
)
public:
static DesignerView^ FromContext(
    EditingContext^ context
)
static member FromContext : 
        context:EditingContext -> DesignerView 
public static function FromContext(
    context : EditingContext
) : DesignerView

パラメーター

戻り値

型: Microsoft.Windows.Design.Interaction.DesignerView
context に格納されている DesignerView。ビューが存在しない場合は nullnull 参照 (Visual Basic では Nothing)。

例外

例外 条件
ArgumentNullException

context は nullnull 参照 (Visual Basic では Nothing) なので、

.NET Framework セキュリティ

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

参照

参照

DesignerView クラス

Microsoft.Windows.Design.Interaction 名前空間

AdornerPanel

その他の技術情報

チュートリアル : デザイン時装飾の作成

装飾アーキテクチャ