MultipleViewPattern 类

定义

表示提供同一组信息或子控件的多种表示方式(并能够在这些表示方式之间切换)的控件。Represents controls that provide, and are able to switch between, multiple representations of the same set of information or child controls.

public ref class MultipleViewPattern : System::Windows::Automation::BasePattern
public class MultipleViewPattern : System.Windows.Automation.BasePattern
type MultipleViewPattern = class
    inherit BasePattern
Public Class MultipleViewPattern
Inherits BasePattern
继承
MultipleViewPattern

注解

可显示多个视图的控件示例包括列表视图 (可将其内容显示为缩略图、磁贴、图标或详细信息) Microsoft ExcelMicrosoft Excel 、图表 (饼图、折线图、条形图、带有公式的单元值Microsoft WordMicrosoft Word )、文档 (常规、Web 版式、打印布局、阅读版式、大纲)、 Microsoft OutlookMicrosoft Outlook日历 (年、月、周、天) 和Microsoft Windows Media PlayerMicrosoft Windows Media Player外观。Examples of controls that can present multiple views include the list view (which can show its contents as thumbnails, tiles, icons, or details), Microsoft ExcelMicrosoft Excel charts (pie, line, bar, cell value with a formula), Microsoft WordMicrosoft Word documents (normal, Web layout, print layout, reading layout, outline), Microsoft OutlookMicrosoft Outlook calendar (year, month, week, day) and Microsoft Windows Media PlayerMicrosoft Windows Media Player skins. 支持的视图由控件开发人员确定,并特定于每个控件。The supported views are determined by the control developer and are specific to each control.

字段

CurrentViewProperty

标识 CurrentView 属性。Identifies the CurrentView property.

Pattern

标识 MultipleViewPattern 控件模式。Identifies the MultipleViewPattern control pattern.

SupportedViewsProperty

标识用于获取视图的控件特定集合的属性。Identifies the property that gets the control-specific collection of views.

属性

Cached

获取此 MultipleViewPattern 中已缓存的 UI 自动化UI Automation 属性值。Gets the cached UI 自动化UI Automation property values for this MultipleViewPattern.

Current

获取此 UI 自动化UI Automation 的当前 MultipleViewPattern属性值。Gets the current UI 自动化UI Automation property values for this MultipleViewPattern.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetViewName(Int32)

检索特定于控件的视图的名称。Retrieves the name of a control-specific view.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
SetCurrentView(Int32)

设置当前的特定于控件的视图。Sets the current control-specific view.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅