Table of Contents

Class KeyComboInit

Namespace
RichHudFramework.UI
Assembly
RichHudClient.dll

Helper class for defining a specific combination of controls (up to 3).

Used with BindGroupInitializer to specify bind combos or aliases.

public class KeyComboInit : IReadOnlyList<int>, IReadOnlyCollection<int>, IEnumerable<int>, IEnumerable
Inheritance
KeyComboInit
Implements

Constructors

KeyComboInit()

public KeyComboInit()

KeyComboInit(ControlHandle)

public KeyComboInit(ControlHandle con)

Parameters

con ControlHandle

KeyComboInit(ControlHandle, ControlHandle)

public KeyComboInit(ControlHandle con1, ControlHandle con2)

Parameters

con1 ControlHandle
con2 ControlHandle

KeyComboInit(ControlHandle, ControlHandle, ControlHandle)

public KeyComboInit(ControlHandle con1, ControlHandle con2, ControlHandle con3)

Parameters

con1 ControlHandle
con2 ControlHandle
con3 ControlHandle

KeyComboInit(List<int>)

public KeyComboInit(List<int> comboData)

Parameters

comboData List<int>

Properties

Count

Gets the number of elements in the collection.

public int Count { get; }

Property Value

int

The number of elements in the collection.

this[int]

Gets the element at the specified index in the read-only list.

public int this[int index] { get; }

Parameters

index int

The zero-based index of the element to get.

Property Value

int

The element at the specified index in the read-only list.

Methods

Add(ControlHandle)

Adds a control to the combination. Throws an exception if more than 3 controls are added.

public void Add(ControlHandle con)

Parameters

con ControlHandle

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<int> GetEnumerator()

Returns

IEnumerator<int>

An enumerator that can be used to iterate through the collection.

Operators

implicit operator List<int>(KeyComboInit)

public static implicit operator List<int>(KeyComboInit cInit)

Parameters

cInit KeyComboInit

Returns

List<int>

implicit operator KeyComboInit(List<int>)

public static implicit operator KeyComboInit(List<int> comboData)

Parameters

comboData List<int>

Returns

KeyComboInit

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerator IEnumerable.GetEnumerator()

Returns

IEnumerator

An IEnumerator object that can be used to iterate through the collection.