New to Telerik UI for WPFStart a free 30-day trial

Represents an automation peer for the RadColorPaletteViewItem class, facilitating UI Automation interactions for color palette view items in a Telerik application's color palette. This class inherits from and implements the ISelectionItemProvider and IValueProvider interfaces. It provides access to properties indicating the item's selection state, value, and read-only status, and supports interaction methods to add or remove the item from the selection, and to set its value. The automation peer ensures that the color palette view items are accessible for automated testing and assistive technologies.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public class RadColorPaletteViewItemAutomationPeer : FrameworkElementAutomationPeer, ISelectionItemProvider, IValueProvider

Inheritance: objectRadColorPaletteViewItemAutomationPeer

Implements: ISelectionItemProviderIValueProvider

Constructors

Initializes a new instance of the RadColorPaletteViewItemAutomationPeer class.

C#
public RadColorPaletteViewItemAutomationPeer(RadColorPaletteViewItem owner, RadColorPaletteView parentPalette)
Parameters:ownerRadColorPaletteViewItem

The owner.

parentPaletteRadColorPaletteView

The parent palette.

Properties

Gets a value that specifies whether the value of a control is read-only.

C#
public bool IsReadOnly { get; }
Property Value:

true if the value is read-only; false if it can be modified.

Gets the value of the control.

C#
public string Value { get; }
Property Value:

The value of the control as a string.

Methods

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

C#
protected override string GetAutomationIdCore()
Returns:

string

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

Gets the item.

C#
public object GetItem()
Returns:

object

C#
protected override string GetItemStatusCore()
Returns:

string

When overridden in a derived class, is called by .

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

The type of the control.

C#
protected override string GetNameCore()
Returns:

string

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterfaceReturns:

object

Sets the value of a control.

C#
public void SetValue(string value)
Parameters:valuestring