Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SelectionItemPattern Class

Definition

Namespace:
System.Windows.Automation
Assembly:
UIAutomationClient.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents selectable child items of container controls that support SelectionPattern.

public ref class SelectionItemPattern : System::Windows::Automation::BasePattern
public class SelectionItemPattern : System.Windows.Automation.BasePattern
type SelectionItemPattern = class
 inherit BasePattern
Public Class SelectionItemPattern
Inherits BasePattern
Inheritance
SelectionItemPattern

Remarks

See Control Pattern Mapping for UI Automation Clients for examples of controls that can implement this control pattern.

Fields

Name Description
ElementAddedToSelectionEvent

Identifies the event raised when an item is added to a collection of selected items.

ElementRemovedFromSelectionEvent

Identifies the event raised when an item is removed from a collection of selected items.

ElementSelectedEvent

Identifies the event that is raised when a call to any of Select(), AddToSelection(), or RemoveFromSelection() results in a single item being selected.

IsSelectedProperty

Identifies the IsSelected property.

Pattern

Identifies the SelectionItemPattern control pattern.

SelectionContainerProperty

Identifies the SelectionContainer property.

Properties

Name Description
Cached

Gets the cached property values for this SelectionItemPattern.

Current

Gets the current property values for this SelectionItemPattern.

Methods

Name Description
AddToSelection()

Adds the current element to the collection of selected items.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveFromSelection()

Removes the current element from the collection of selected items.

Select()

Deselects any selected items and then selects the current element.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also


Feedback

Was this page helpful?