Provides a class that exposes the CalendarButton to UI Automation.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public class CalendarButtonAutomationPeer : FrameworkElementAutomationPeer, ISelectionItemProvider, ITableItemProvider, IGridItemProvider, IInvokeProvider
Inheritance: objectCalendarButtonAutomationPeer
Implements:
Constructors
Initializes a new instance of the CalendarButtonAutomationPeer class.
public CalendarButtonAutomationPeer(CalendarButton item)
The CalendarButton item.
Properties
Gets the ordinal number of the column that contains the cell or item.
public int Column { get; }
A zero-based ordinal number that identifies the column containing the cell or item.
Gets the number of columns spanned by a cell or item.
public int ColumnSpan { get; }
The number of columns spanned.
ContainingGrid
IRawElementProviderSimple
Gets a UI Automation provider that implements IGridProvider and represents the container of the cell or item.
public IRawElementProviderSimple ContainingGrid { get; }
A UI Automation provider that implements the and represents the cell or item container.
Gets a value that indicates whether an item is selected.
public bool IsSelected { get; }
true if the element is selected; otherwise false.
Gets the ordinal number of the row that contains the cell or item.
public int Row { get; }
A zero-based ordinal number that identifies the row containing the cell or item.
Gets the number of rows spanned by a cell or item.
public int RowSpan { get; }
The number of rows spanned.
SelectionContainer
IRawElementProviderSimple
Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.
public IRawElementProviderSimple SelectionContainer { get; }
The provider that supports ISelectionProvider.
Methods
Adds the current element to the collection of selected items.
public void AddToSelection()
Gets the control type for the UIElement that is associated with this . This method is called by .
protected override AutomationControlType GetAutomationControlTypeCore()
AutomationControlType
The enumeration value.
Retrieves a collection of UI Automation providers representing all the column headers associated with a table item or cell.
public IRawElementProviderSimple[] GetColumnHeaderItems()
IRawElementProviderSimple[]
A collection of UI Automation providers.
When overridden in a derived class, is called by .
Returns the text label of the FrameworkElement associated with this AutomationPeers. Called by AutomationPeer.GetName.
protected override string GetNameCore()
A text label of the Element associated with this Automation Peer.
Gets the control pattern for the UIElement that is associated with this .
public override object GetPattern(PatternInterface patternInterface)
A value from the enumeration.
Returns:An object that implements the
interface if patternInterface is ;
otherwise, null.
Retrieves a collection of UI Automation providers representing all the row headers associated with a table item or cell.
public IRawElementProviderSimple[] GetRowHeaderItems()
IRawElementProviderSimple[]
A collection of UI Automation providers.
Sends a request to activate a control and initiate its single, unambiguous action.
public void Invoke()
If the control is not enabled.
Removes the current element from the collection of selected items.
public void RemoveFromSelection()
Deselects any selected items and then selects the current element.
public void Select()