Class RatingItemAutomationPeer
Exposes RatingItem types to UI Automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.Controls.Input.Toolkit.dll
Syntax
public class RatingItemAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, ISelectionItemProvider
Constructors
| Improve this Doc View SourceRatingItemAutomationPeer(RatingItem)
Initializes a new instance of the RatingAutomationPeer class.
Declaration
public RatingItemAutomationPeer(RatingItem owner)
Parameters
Type | Name | Description |
---|---|---|
RatingItem | owner | The Rating that is associated with this RatingAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the RatingItem that is associated with this RatingItemAutomationPeer. This method is called by GetAutomationControlType.
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | Custom AutomationControlType. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the RatingItem that is associated with this RatingItemAutomationPeer. This method is called by GetClassName.
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The name RatingItem. |
Overrides
| Improve this Doc View SourceGetLocalizedControlTypeCore()
Returns the localized control type.
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
Type | Description |
---|---|
System.String | The localized control type. |
Overrides
| Improve this Doc View SourceGetNameCore()
Returns the name of the rating item. Uses the index of the rating item in the list.
Declaration
protected override string GetNameCore()
Returns
Type | Description |
---|---|
System.String | The name of the rating item. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets the control pattern for the RatingItem that is associated with this RatingItemAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
Type | Name | Description |
---|---|---|
PatternInterface | patternInterface | The desired PatternInterface. |
Returns
Type | Description |
---|---|
System.Object | The desired AutomationPeer or null. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceISelectionItemProvider.AddToSelection()
Adds the RatingItem to the collection of selected items.
Declaration
void ISelectionItemProvider.AddToSelection()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.IsSelected
Gets a value indicating whether the Rating is selected.
Declaration
bool ISelectionItemProvider.IsSelected { get; }
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.RemoveFromSelection()
Removes the current Rating from the collection of selected items.
Declaration
void ISelectionItemProvider.RemoveFromSelection()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.Select()
Clears selection from currently selected items and then proceeds to select the current Rating.
Declaration
void ISelectionItemProvider.Select()
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
ISelectionItemProvider.SelectionContainer
Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.
Declaration
IRawElementProviderSimple ISelectionItemProvider.SelectionContainer { get; }
Returns
Type | Description |
---|---|
IRawElementProviderSimple |
Remarks
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.