The UIAListItem type exposes the following members.

Constructors

  NameDescription
UIAListItem
Ctor to initiate a UIAListBox wrapper to the UI automation ListItem control

Methods

  NameDescription
AddToSelection
Add the item to list of selected items.
Check
Check (without click) the checkbox control
CheckExistence (Inherited from UIControlBase.)
ClickOverloaded.
Collapse
Collapse up to the list item.
DoubleClickOverloaded.
DragOverloaded.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Expand
Expand if list item has sub selections
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FindOverloaded.
FindAllOverloaded.
GetAnscestors (Inherited from UIControlBase.)
GetDescendants (Inherited from UIControlBase.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetImage
Get the bitmap of the control.
(Inherited from UIControlBase.)
GetPartialImage
Gets partial bitmap of the control
(Inherited from UIControlBase.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
GetWinFormsProperties
Applicable only on WinFormsControl (you can query it by the IsWinForms property), gets the serializable properties of the control with types that are commonly references
(Inherited from UIAControl.)
Invoke
Use windows invoking, to select the item.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
MoveMouseTo
Simulate a mouse move, this is good way to test hover functionality.
(Inherited from UIControlBase.)
OnBeforeAnyAction (Inherited from UIControlBase.)
Refresh (Inherited from UIAControl.)
RemoveFromSelection
Remove the item from list of selected items.
Select
Select the item in the list as single selection
SetFocus (Inherited from UIAControl.)
Toggle
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
UnCheck
UnCheck (without click) the checkbox control
WaitForControlByID
Waits for a specific child by ID
(Inherited from UIControlBase.)
WaitForControlByName
Waits for a specific child by name
(Inherited from UIControlBase.)
WaitForProperty
Waits for a specific property
(Inherited from UIControlBase.)
Write
Simulate key strokes using the keyboard.
(Inherited from UIControlBase.)

Fields

  NameDescription
automationElement (Inherited from UIAControl.)
children (Inherited from UIControlBase.)
className
The class name of the control
(Inherited from UIControlBase.)
codePath (Inherited from UIControlBase.)
enabled (Inherited from UIControlBase.)
extendedProperties (Inherited from UIControlBase.)
handle (Inherited from UIControlBase.)
id (Inherited from UIControlBase.)
index (Inherited from UIControlBase.)
layout (Inherited from UIControlBase.)
name (Inherited from UIControlBase.)
parent (Inherited from UIControlBase.)
sao (Inherited from UIAControl.)
visible (Inherited from UIControlBase.)

Properties

  NameDescription
CheckState
Verify the check state of the checkbox.
Children (Inherited from UIAControl.)
ClassName (Inherited from UIAControl.)
CodePath (Inherited from UIAControl.)
Enabled (Inherited from UIAControl.)
ExpandCollapseState
Return the collapse / Expand status
Handle (Inherited from UIAControl.)
HelpText
An additional help string associated with the control
(Inherited from UIAControl.)
ID (Inherited from UIAControl.)
Index
The index of the child control among its siblings
(Inherited from UIControlBase.)
IsSelected
IsWinForms
Indicates whether the control is a winforms control
(Inherited from UIAControl.)
ItemOverloaded.
Layout (Inherited from UIAControl.)
MSAA
The MSAA API for the control
(Inherited from UIAControl.)
Name (Inherited from UIAControl.)
Parent (Inherited from UIAControl.)
Process (Inherited from UIAControl.)
Text
Retrieve the text string on the list item.
UIAControlType
The type of the control as it exposed by the UI Automation framework.

Examples

CopyC#
UIAButton button1 = null;
  UIAPane win = Desktop.UIA[@"", @"Shell_TrayWnd", @"UIAPane"] as UIAPane;
  foreach (UIControl control in win.Children)
  {
      if (control.Type == System.Windows.Automation.ControlType.Button)
      {
          button1 = control as UIAButton;
          break;
      }
  }
  button1.Click();
(Inherited from UIAControl.)
UIAutomationElement
Gets the underlying UIAutomation object of the control
(Inherited from UIAControl.)
UIType
The name of the current type (UIAButton, UIAEditBox, etc) as it is translated by QAliber engine.
(Inherited from UIControlBase.)
Visible (Inherited from UIAControl.)
VisibleName
The name of the control as it appears in the UI Controls browser
(Inherited from UIControlBase.)

See Also