Interface
IItemsControl

An interface which provides methods for handling a collection of RadItems. This interface is used throughout controls which represent a list of items.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public interface IItemsControl

Properties

ActiveItems

Gets a collection containing the items that are currently active.

Declaration

cs-api-definition
RadItemOwnerCollection ActiveItems { get; }

Property Value

RadItemOwnerCollection

Items

Gets the collection of items associated with the IItemsControl.

Declaration

cs-api-definition
RadItemOwnerCollection Items { get; }

Property Value

RadItemOwnerCollection

ProcessKeyboard

Gets or sets a boolean value that determines whether keyboard input will be processed by the IItemsControl.

Declaration

cs-api-definition
bool ProcessKeyboard { get; set; }

Property Value

bool

RollOverItemSelection

Gets or sets a boolean value that determines whether the rollover items functionality will be allowed.

Declaration

cs-api-definition
bool RollOverItemSelection { get; set; }

Property Value

bool

Methods

CanNavigate(Keys)

Defines whether the IItemsControl can execute navigation operation based on the keydata provided.

Declaration

cs-api-definition
bool CanNavigate(Keys keyData)

Parameters

keyData

Keys

An instance of the Keys struct that defines the key command issued.

Returns

bool

True if navigation possible, otherwise false.

CanProcessMnemonic(char)

Defines whether the IItemsControl has an item that corresponds to the mnemonic passed in the parameter.

Declaration

cs-api-definition
bool CanProcessMnemonic(char keyData)

Parameters

keyData

char

A character that defines the mnemonic command issued.

Returns

bool

True if mnemonic can be processed, otherwise false.

GetFirstVisibleItem()

Gets the first visible item from the collection. In a IItemsControl that is the first item that is visible on the control.

Declaration

cs-api-definition
RadItem GetFirstVisibleItem()

Returns

RadItem

A reference to a RadItem instance that represents the first visible control.

GetLastVisibleItem()

Gets the last visible item from the collection. In a IItemsControl that is the last item that is visible on the control.

Declaration

cs-api-definition
RadItem GetLastVisibleItem()

Returns

RadItem

A reference to a RadItem instance that represents the last visible control.

GetNextItem(RadItem, bool)

Gets an item from the collection that is next to a certain item.

Declaration

cs-api-definition
RadItem GetNextItem(RadItem item, bool forward)

Parameters

item

RadItem

The item which neighbour to return.

forward

bool

The direction in which to look for the neighbour.

Returns

RadItem

A reference to a RadItem instance which represents the neighbour item.

GetSelectedItem()

Returns the selected item in the control.

Declaration

cs-api-definition
RadItem GetSelectedItem()

Returns

RadItem

An reference to a RadItem instance which represents the currently selected item.

SelectFirstVisibleItem()

Selects the first visible item on the IItemsControl.

Declaration

cs-api-definition
RadItem SelectFirstVisibleItem()

Returns

RadItem

A reference to a RadItem instance that represents the item selected.

SelectItem(RadItem)

Selects an item in the control.

Declaration

cs-api-definition
void SelectItem(RadItem item)

Parameters

item

RadItem

A reference to a RadItem instance which represents the item which is to be selected.

SelectLastVisibleItem()

Selects the last visible item on the IItemsControl.

Declaration

cs-api-definition
RadItem SelectLastVisibleItem()

Returns

RadItem

A reference to a RadItem instance that represents the item selected.

SelectNextItem(RadItem, bool)

Selects an item from the collection that is next to a certain item.

Declaration

cs-api-definition
RadItem SelectNextItem(RadItem item, bool forward)

Parameters

item

RadItem

The item which neighbour to return.

forward

bool

The direction in which to look for the neighbour.

Returns

RadItem

A reference to a RadItem instance which represents the neighbour item.

Events

ItemDeselected

Fires when an item has been deselected.

Declaration

cs-api-definition
event ItemSelectedEventHandler ItemDeselected

Event Value

ItemSelectedEventHandler

ItemSelected

Fires when an item has been selected.

Declaration

cs-api-definition
event ItemSelectedEventHandler ItemSelected

Event Value

ItemSelectedEventHandler