IndicatorArray struct | QSYS API Reference Guide
Estimated reading time: 3 minutes
Defines the functionality of a fixed-sized unidimensional array of Indicator elements.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Constructors
| Name | Description |
|---|---|
| IndicatorArray(Indicator[]) | Initializes an IndicatorArray using a .Net array of Indicator elements. |
| IndicatorArray(Char[]) | Initializes an IndicatorArray using a .Net array of char elements. |
IndicatorArray(Indicator[])
Initializes an IndicatorArray using a .Net array of Indicator elements.
IndicatorArray(Indicator[])
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Indicator[] | array | The Indicator[] obect from which to initialize this IndicatorArray. |
IndicatorArray(Char[])
Initializes an IndicatorArray using a .Net array of char elements.
IndicatorArray(Char[])
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Char[] | array | The char[] obect from which to initialize this IndicatorArray. |
Properties
| Type | Name | Description |
|---|---|---|
| Indicator[] | Array | Gets the array that holds the values of the IndicatorArray. |
| Indicator | Item | Indexer over the array, gets or sets the element at that position. |
| Int32 | Length | Gets the number of elements in the IndicatorArray. |
Methods
| Signature | Description |
|---|---|
| Clear() | Clears all elements of the array to their default value. |
| CopyFrom(Indicator[], Int32) | Copy elements of a Indicator[] into this array, starting at the given position. |
| CopyFrom(Char[], Int32) | Copy elements of a char[] into this array, starting at the given position. |
| GetEnumerator() | Get an IEnumerator to iterate over the elements of the array. |
| Sort(Boolean, Int32, Int32) | Order elements of the array according to their value. |
void Clear()
Clears all elements of the array to their default value.
void Clear()
void CopyFrom(Indicator[] sourceArray, int targetStartAt)
Copy elements of a Indicator[] into this array, starting at the given position.
void CopyFrom(Indicator[] sourceArray, int targetStartAt)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Indicator[] | sourceArray | The array from where to copy. |
| Int32 | targetStartAt | The starting index in this array. Default is 0. |
void CopyFrom(Char[] sourceArray, int targetStartAt)
Copy elements of a char[] into this array, starting at the given position.
void CopyFrom(Char[] sourceArray, int targetStartAt)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Char[] | sourceArray | The array from where to copy. |
| Int32 | targetStartAt | The starting index in this array. Default is 0. |
IEnumerator GetEnumerator()
Get an IEnumerator to iterate over the elements of the array.
IEnumerator<Indicator> GetEnumerator()
void Sort(bool ascending, int start, int length)
Order elements of the array according to their value.
void Sort(bool ascending, int start, int length)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| Boolean | ascending | True for ascending order. Default is true. |
| Int32 | start | Index of the element where the sort starts. Default is 0. |
| Int32 | length | How many elements to sort. Default is -1, sort the whole array. |