Class CalendarButtonAutomationPeer
Exposes CalendarButton types to UI automation.
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.dll
Syntax
public class CalendarButtonAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IGridItemProvider, IInvokeProvider, ISelectionItemProvider
Constructors
| Improve this Doc View SourceCalendarButtonAutomationPeer(CalendarButton)
Initializes a new instance of the CalendarButtonAutomationPeer class.
Declaration
public CalendarButtonAutomationPeer(CalendarButton owner)
Parameters
Type | Name | Description |
---|---|---|
CalendarButton | owner | The CalendarButton to associate with this AutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Returns the control type for the CalendarButton that is associated with this CalendarButtonAutomationPeer. 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 CalendarButton that is associated with this CalendarButtonAutomationPeer. 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 CalendarButtonAutomationPeer. |
Overrides
| Improve this Doc View SourceGetHelpTextCore()
Returns the string that describes the functionality of the CalendarButton that is associated with this CalendarButtonAutomationPeer. 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 CalendarButtonAutomationPeer.
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 CalendarButton that is associated with this CalendarButtonAutomationPeer. 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 for this CalendarButtonAutomationPeer.
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 spanned. |
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 |
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 that are spanned. |
IInvokeProvider.Invoke()
Sends a request to activate the control and initiate its single, unambiguous action.
Declaration
void IInvokeProvider.Invoke()
ISelectionItemProvider.AddToSelection()
Adds the current element to the collection of selected items.
Declaration
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()
Clears 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 provider that supports ISelectionProvider. |