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
conControlHandle
KeyComboInit(ControlHandle, ControlHandle)
public KeyComboInit(ControlHandle con1, ControlHandle con2)
Parameters
con1ControlHandlecon2ControlHandle
KeyComboInit(ControlHandle, ControlHandle, ControlHandle)
public KeyComboInit(ControlHandle con1, ControlHandle con2, ControlHandle con3)
Parameters
con1ControlHandlecon2ControlHandlecon3ControlHandle
KeyComboInit(List<int>)
public KeyComboInit(List<int> comboData)
Parameters
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
indexintThe 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
conControlHandle
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
cInitKeyComboInit
Returns
implicit operator KeyComboInit(List<int>)
public static implicit operator KeyComboInit(List<int> comboData)
Parameters
Returns
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.