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,如果视图不存在,则为 nulla null reference (Nothing in Visual Basic)。

异常

异常 条件
ArgumentNullException

context 为 nulla null reference (Nothing in Visual Basic)。

.NET Framework 安全性

请参见

参考

DesignerView 类

Microsoft.Windows.Design.Interaction 命名空间

AdornerPanel

其他资源

演练:创建设计时装饰器

装饰器体系结构