码迷,mamicode.com
首页 > 其他好文 > 详细

[UIA]Pattern总结

时间:2015-02-03 15:09:12      阅读:1084      评论:0      收藏:0      [点我收藏+]

标签:ui自动化   uiautomation   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总结

标签:ui自动化   uiautomation   uia   pattern   

原文地址:http://blog.csdn.net/sogouauto/article/details/43449007

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!