AdornerProperties.GetView 方法

获取指定装饰器的视图。

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

语法

声明
Public Shared Function GetView ( _
    adorner As DependencyObject _
) As ViewItem
public static ViewItem GetView(
    DependencyObject adorner
)
public:
static ViewItem^ GetView(
    DependencyObject^ adorner
)
static member GetView : 
        adorner:DependencyObject -> ViewItem 
public static function GetView(
    adorner : DependencyObject
) : ViewItem

参数

返回值

类型:Microsoft.Windows.Design.Interaction.ViewItem
与 adorner 关联的视图,如果尚未设置视图,则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

异常

异常 条件
ArgumentNullException

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

.NET Framework 安全性

请参见

参考

AdornerProperties 类

Microsoft.Windows.Design.Interaction 命名空间

AdornerPanel

其他资源

演练:创建设计时装饰器

装饰器体系结构