首页 > 代码库 > [UIA]Pattern总结
[UIA]Pattern总结
将Window提供的Pattern及每个Pattern内部的方法,罗列了下,方便查找
***IUIAutomationAnnotationPattern
Provides access to the properties of an annotation in a document.
IUIAutomationDockPattern
--SetDockPosition
Provides access to a control that enables child elements to be arranged horizontally and vertically, relative to each other.
***IUIAutomationDragPattern
--GetCachedGrabbedItems
--GetCurrentGrabbedItems
Provides access to information exposed by a UI Automation provider for an element that can be dragged as part of a drag-and-drop operation.
***IUIAutomationDropTargetPattern
Provides access to drag-and-drop information exposed by a Microsoft UI Automation provider for an element that can be the drop target of a drag-and-drop operation.
IUIAutomationExpandCollapsePattern
--Collapse
--Expand
Provides access to a control that can visually expand to display content, and collapse to hide content.
IUIAutomationGridItemPattern
Provides access to a child control in a grid-style container that supports the IUIAutomationGridPattern interface.
IUIAutomationGridPattern
--GetItem
Provides access to a control that acts as a container for a collection of child controls that are organized in a two-dimensional logical coordinate system that can be traversed by row and column.
IUIAutomationInvokePattern
--Invoke
Exposes a method that enables a client application to invoke the action of a control (typically a button).
IUIAutomationItemContainerPattern
--FindItemByProperty
Exposes a method that retrieves an item from a container, such as a virtual list.
***IUIAutomationLegacyIAccessiblePattern
--DoDefaultAction
--GetCachedSelection
--GetCurrentSelection
--GetIAccessible
--Select
--SetValue
Exposes methods and properties that enable UI Automation clients to retrieve UI information from Microsoft Active Accessibility (MSAA) servers.
IUIAutomationMultipleViewPattern
--GetCachedSupportedViews
--GetCurrentSupportedViews
--GetViewName
--SetCurrentView
Provides access to a control that can switch between multiple representations of the same information or set of child controls.
***IUIAutomationObjectModelPattern
--GetUnderlyingObjectModel
Provides access to the underlying object model implemented by a control or application.
***IUIAutomationPatternHandler
--CreateClientWrapper
--Dispatch
Returns a client API wrapper object and to unmarshal property and method requests to an actual provider instance.
***IUIAutomationPatternInstance
--CallMethod
--GetProperty
Represents a control pattern object. The client API wrapper uses this interface to implement all property and method calls in terms of the GetProperty and CallMethod methods.
IUIAutomationRangeValuePattern
--SetValue
Provides access to a control that presents a range of values.
IUIAutomationScrollItemPattern
--ScrollIntoView
Exposes a method that enables an item in a scrollable view to be placed in a visible portion of the view.
IUIAutomationScrollPattern
--Scroll
--SetScrollPercent
Provides access to a control that acts as a scrollable container for a collection of child elements.
IUIAutomationSelectionItemPattern
--AddToSelection
--RemoveFromSelection
--Select
Provides access to the selectable child items of a container control that supports IUIAutomationSelectionPattern.
IUIAutomationSelectionPattern
--GetCachedSelection
--GetCurrentSelection
Provides access to a control that contains selectable child items. The children of this element support IUIAutomationSelectionItemPattern.
***IUIAutomationSpreadsheetItemPattern
--GetCachedAnnotationObjects
--GetCachedAnnotationTypes
--GetCurrentAnnotationObjects
--GetCurrentAnnotationTypes
Enables a client application to retrieve information about an item (cell) in a spreadsheet.
***IUIAutomationSpreadsheetPattern
--GetItemByName
Enables a client application to access the items (cells) in a spreadsheet.
***IUIAutomationStylesPattern
--GetCachedExtendedPropertiesArray
--GetCurrentExtendedPropertiesArray
Enables UI Automation clients to retrieve the visual styles associated with an element in a document.
IUIAutomationSynchronizedInputPattern
--Cancel
--StartListening
Provides access to the keyboard or mouse input of a control.
IUIAutomationTableItemPattern
--GetCachedColumnHeaderItems
--GetCachedRowHeaderItems
--GetCurrentColumnHeaderItems
--GetCurrentRowHeaderItems
Provides access to a child element in a container that supports IUIAutomationTablePattern.
IUIAutomationTablePattern
--GetCachedColumnHeaders
--GetCachedRowHeaders
--GetCurrentColumnHeaders
--GetCurrentRowHeaders
Provides access to a control that acts as a container for a collection of child elements. The children of this element support IUIAutomationTableItemPattern and are organized in a two-dimensional logical coordinate system that can be traversed by row and column.
***IUIAutomationTextChildPattern
Provides access a text-based control (or an object embedded in text) that is a child or descendant of another text-based control.
***IUIAutomationTextEditPattern
--GetActiveComposition
--GetConversionTarget
Provides access to a control that modifies text, for example a control that performs auto-correction or enables input composition through an Input Method Editor (IME).
IUIAutomationTextPattern
--GetSelection
--GetVisibleRanges
--RangeFromChild
--RangeFromPoint
Provides access to a control that contains text.
IUIAutomationTextPattern2
--GetCaretRange
--RangeFromAnnotation
Extends the IUIAutomationTextPattern interface.
***IUIAutomationTextRange
--AddToSelection
--Clone
--Compare
--CompareEndpoints
--ExpandToEnclosingUnit
--FindAttribute
--FindText
--GetAttributeValue
--GetBoundingRectangles
--GetChildren
--GetEnclosingElement
--GetText
--Move
--MoveEndpointByRange
--MoveEndpointByUnit
--RemoveFromSelection
--ScrollIntoView
--Select
Provides access to a span of continuous text in a container that supports the IUIAutomationTextPattern interface. Client applications can use the IUIAutomationTextRange interface to select, compare, and retrieve embedded objects from the text span.
***IUIAutomationTextRange2
--ShowContextMenu
Extends the IUIAutomationTextRange interface to enable UI Automation clients to programmatically invoke context menus.
***IUIAutomationTextRangeArray
--GetElement
Represents a collection of IUIAutomationTextRange objects.
IUIAutomationTogglePattern
--Toggle
Provides access to a control that can cycle through a set of states, and maintain a state after it is set.
IUIAutomationTransformPattern
--Move
--Resize
--Rotate
Provides access to a control that can be moved, resized, or rotated.
IUIAutomationTransformPattern2
--Zoom
--ZoomByUnit
Extends the IUIAutomationTransformPattern interface to enable UI Automation clients to programmatically access the viewport zooming functionality of a control.
IUIAutomationValuePattern
--SetValue
Provides access to a control that contains a value that does not span a range and that can be represented as a string.
IUIAutomationVirtualizedItemPattern
--Realize
Represents an virtualized item, which is an item that is represented by a placeholder automation element in the UI Automation tree.
IUIAutomationWindowPattern
--Close
--SetWindowVisualState
--WaitForInputIdle
Provides access to the fundamental functionality of a window.
[UIA]Pattern总结
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。