DesignerView.FromContext 方法

更新:2007 年 11 月

返回存储在指定上下文中的设计器视图。

命名空间:  Microsoft.Windows.Design.Interaction
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)

语法

声明
Public Shared Function FromContext ( _
    context As EditingContext _
) As DesignerView
用法
Dim context As EditingContext
Dim returnValue As DesignerView

returnValue = DesignerView.FromContext(context)
public static DesignerView FromContext(
    EditingContext context
)
public:
static DesignerView^ FromContext(
    EditingContext^ context
)
public static function FromContext(
    context : EditingContext
) : DesignerView

参数

返回值

类型:Microsoft.Windows.Design.Interaction.DesignerView

存储在 context 中的 DesignerView,如果视图不存在,则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

异常

异常 条件
ArgumentNullException

context为 nullnull 引用(在 Visual Basic 中为 Nothing)。

权限

另请参见

参考

DesignerView 类

DesignerView 成员

Microsoft.Windows.Design.Interaction 命名空间

AdornerPanel

其他资源

演练:创建设计时装饰器

装饰器体系结构