Class CalendarDayButtonAutomationPeer
Exposes CalendarDayButton types to UI Automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class CalendarDayButtonAutomationPeer : FrameworkElementAutomationPeer, IInvokeProvider, ISelectionItemProvider, ITableItemProvider, IGridItemProvider
Constructors
| Improve this Doc View SourceCalendarDayButtonAutomationPeer(CalendarDayButton)
Initializes a new instance of the CalendarDayButtonAutomationPeer class.
Declaration
public CalendarDayButtonAutomationPeer(CalendarDayButton owner)
Parameters
Type | Name | Description |
---|---|---|
CalendarDayButton | owner | The CalendarDayButton instance that is associated with this CalendarDayButtonAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Returns the control type for the CalendarDayButton that is associated with this CalendarDayButtonAutomationPeer. This method is called by GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | A value of the AutomationControlType enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Returns the name of the CalendarDayButton that is associated with this CalendarDayButtonAutomationPeer. This method is called by GetClassName.
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The name of the owner type that is associated with this CalendarDayButtonAutomationPeer. |
Overrides
| Improve this Doc View SourceGetHelpTextCore()
Returns the string that describes the functionality of the CalendarDayButton that is associated with this CalendarDayButtonAutomationPeer. This method is called by GetHelpText.
Declaration
protected override string GetHelpTextCore()
Returns
Type | Description |
---|---|
System.String | The help text, or String.Empty if there is no help text. |
Overrides
| Improve this Doc View SourceGetLocalizedControlTypeCore()
Returns the localized version of the control type for the owner type that is associated with this CalendarDayButtonAutomationPeer.
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
Type | Description |
---|---|
System.String | The string that contains the type of control. |
Overrides
| Improve this Doc View SourceGetNameCore()
Returns the text label of the CalendarDayButton that is associated with this CalendarDayButtonAutomationPeer. This method is called by GetName.
Declaration
protected override string GetNameCore()
Returns
Type | Description |
---|---|
System.String | The text label of the element that is associated with this automation peer. |
Overrides
Remarks
The name property can be thought of as the string of text that a user would use to explain which control is being referred to. It is important to have a textual representation for all controls in the graphical user interface (GUI) so that you can programmatically refer to the control in a localized manner. The value is settable on control instances through the AutomationProperties.Name attached property.
GetPattern(PatternInterface)
Gets the control pattern implementation for this CalendarDayButtonAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | One of the enumeration values. |
Returns
Type | Description |
---|---|
System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIGridItemProvider.Column
Gets the ordinal number of the column that contains the cell or item.
Declaration
int IGridItemProvider.Column { get; }
Returns
Type | Description |
---|---|
System.Int32 | A zero-based ordinal number that identifies the column that contains the cell or item. |
IGridItemProvider.ColumnSpan
Gets the number of columns that are spanned by a cell or item.
Declaration
int IGridItemProvider.ColumnSpan { get; }
Returns
Type | Description |
---|---|
System.Int32 | The number of columns. |
IGridItemProvider.ContainingGrid
Gets a UI Automation provider that implements IGridProvider and that represents the container of the cell or item.
Declaration
IRawElementProviderSimple IGridItemProvider.ContainingGrid { get; }
Returns
Type | Description |
---|---|
IRawElementProviderSimple | The UI Automation provider. |
IGridItemProvider.Row
Gets the ordinal number of the row that contains the cell or item.
Declaration
int IGridItemProvider.Row { get; }
Returns
Type | Description |
---|---|
System.Int32 | A zero-based ordinal number that identifies the row that contains the cell or item. |
IGridItemProvider.RowSpan
Gets the number of rows that are spanned by a cell or item.
Declaration
int IGridItemProvider.RowSpan { get; }
Returns
Type | Description |
---|---|
System.Int32 | The number of rows. |
IInvokeProvider.Invoke()
Sends a request to activate the control and to initiate its single, unambiguous action.
Declaration
[NotImplemented]
void IInvokeProvider.Invoke()
ISelectionItemProvider.AddToSelection()
Adds the current element to the collection of selected items.
Declaration
[NotImplemented]
void ISelectionItemProvider.AddToSelection()
ISelectionItemProvider.IsSelected
Gets a value indicating whether an item is selected.
Declaration
bool ISelectionItemProvider.IsSelected { get; }
Returns
Type | Description |
---|---|
System.Boolean | True if the element is selected; otherwise, false. |
ISelectionItemProvider.RemoveFromSelection()
Removes the current element from the collection of selected items.
Declaration
void ISelectionItemProvider.RemoveFromSelection()
ISelectionItemProvider.Select()
Clear any existing selection and then selects the current element.
Declaration
void ISelectionItemProvider.Select()
ISelectionItemProvider.SelectionContainer
Gets the UI Automation provider that implements ISelectionProvider and that acts as the container for the calling object.
Declaration
IRawElementProviderSimple ISelectionItemProvider.SelectionContainer { get; }
Returns
Type | Description |
---|---|
IRawElementProviderSimple | The UI Automation provider. |
ITableItemProvider.GetColumnHeaderItems()
Retrieves a collection of UI Automation providers that represent all the column headers that are associated with a table item or cell.
Declaration
IRawElementProviderSimple[] ITableItemProvider.GetColumnHeaderItems()
Returns
Type | Description |
---|---|
IRawElementProviderSimple[] | A collection of UI Automation providers. |
ITableItemProvider.GetRowHeaderItems()
Retrieves a collection of UI Automation providers that represent all the row headers that are associated with a table item or cell.
Declaration
IRawElementProviderSimple[] ITableItemProvider.GetRowHeaderItems()
Returns
Type | Description |
---|---|
IRawElementProviderSimple[] | A collection of UI Automation providers. |