Skip to main content

IItemSelectableChart Interface

Definition

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

Selection contract for chart components that select bound items directly.

public interface IItemSelectableChart
Implements:ISelectableChart

Methods

NameDescription
IsItemSelectedChecks whether the specified item is selected.
TrySelectItemAttempts to select the specified item.

IsItemSelected Method

Checks whether the specified item is selected.

public bool IsItemSelected(object item)

Parameters

item object

The item to check.

Returns

bool

True if the item is selected.

TrySelectItem Method

Attempts to select the specified item.

public bool TrySelectItem(object item)

Parameters

item object

The item to select.

Returns

bool

True if the selection state changed.

Properties

NameDescription
SelectedItemGets the primary selected item, if any.
SelectedItemsGets the current collection of selected items, if any.

SelectedItem Property

Gets the primary selected item, if any.

public object SelectedItem { get; set; }

SelectedItems Property

Gets the current collection of selected items, if any.

public System.Collections.IList SelectedItems { get; set; }