> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class Phoenix::ModelCenter::PlugIn::ArrayIndexer

![][C#]
![][package]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 17)

## Members

* [ArrayIndexer](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1aea8616cdf4b2fa07caa0465209e490b4)
* [ArrayIndexer](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1a6edf376d432bb84f96f6daae657f72a5)
* [arrayIndices](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1a18bf2bd8284e33001abd36b975b526c0)
* [currentElement](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1abf8f8298214737b13f790fc3637b3a66)
* [CurrentElement](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1aaa9b62fb3c088697c287ed52f05d6c55)
* [CurrentElementString](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1a98c06280717d261ab3f548716b8941f9)
* [elementCount](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1aed8fc3773643af191d9c4cf671246b4c)
* [ElementValue](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1a4d1e7bccaaae9879c32bfeb434926759)
* [getElementValue](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1ab01a11c33bf148ae0e2f32ba2d718a74)
* [getLength](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1acd8bc973b7965cdcd6b88d92fceaebd7)
* [getValue](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1a33546b96fb135c9b6e81c3df10090309)
* [getValueCalled](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1ab4c9df6d5f2596dbaac60628adb4527b)
* [mcArray](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1a5dda0acdf61cbba64950b36d1ccda430)
* [mcObj](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1ad14c0dee40e1b5f4d6742fa3dbc4a651)
* [mIndex](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1ad1c6efca6cf1aafec6a8af5730494685)
* [numDimensions](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1aedaf9104be4bad963c4ee96b5e6bd9be)
* [NumDimensions](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1accc6fdc83a3d1cc7c3639073503cba65)
* [numElements](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1ae8ffeee8bcf71347a858ab20d5ec98d4)
* [NumElements](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1aa0b92e836ddceabee80c1cef9064b762)
* [reset](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1a2930c3a262f16c95e47e95b6ec0d7f29)
* [Value](#classPhoenix_1_1ModelCenter_1_1PlugIn_1_1ArrayIndexer_1ab6808a0dfe104cf4ca2556f36b187c33)

## Private attributes

### Variable mcArray

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 19)

```csharp theme={null}
IArray Phoenix.ModelCenter.PlugIn.ArrayIndexer.mcArray
```

**Type**: IArray

### Variable mcObj

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 20)

```csharp theme={null}
IObjectVariable Phoenix.ModelCenter.PlugIn.ArrayIndexer.mcObj
```

**Type**: IObjectVariable

### Variable mIndex

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 21)

```csharp theme={null}
string Phoenix.ModelCenter.PlugIn.ArrayIndexer.mIndex
```

**Type**: string

### Variable numElements

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 22)

```csharp theme={null}
int Phoenix.ModelCenter.PlugIn.ArrayIndexer.numElements
```

**Type**: int

### Variable numDimensions

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 23)

```csharp theme={null}
int Phoenix.ModelCenter.PlugIn.ArrayIndexer.numDimensions
```

**Type**: int

### Variable currentElement

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 24)

```csharp theme={null}
int Phoenix.ModelCenter.PlugIn.ArrayIndexer.currentElement
```

**Type**: int

### Variable elementCount

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 25)

```csharp theme={null}
int Phoenix.ModelCenter.PlugIn.ArrayIndexer.elementCount
```

**Type**: int

### Variable arrayIndices

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 26)

```csharp theme={null}
int [] Phoenix.ModelCenter.PlugIn.ArrayIndexer.arrayIndices
```

**Type**: int\[]

### Variable getValueCalled

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 27)

```csharp theme={null}
bool Phoenix.ModelCenter.PlugIn.ArrayIndexer.getValueCalled
```

**Type**: bool

## Properties

### Property CurrentElement

![][public]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 179)

```csharp theme={null}
int Phoenix.ModelCenter.PlugIn.ArrayIndexer.CurrentElement
```

The index of the element in the array the indexer is currently on.

**Return type**: int

### Property CurrentElementString

![][public]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 187)

```csharp theme={null}
string Phoenix.ModelCenter.PlugIn.ArrayIndexer.CurrentElementString
```

The string representation of the current element.

**Return type**: string

### Property ElementValue

![][public]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 207)

```csharp theme={null}
object Phoenix.ModelCenter.PlugIn.ArrayIndexer.ElementValue
```

The value of the current element.

**Return type**: object

### Property NumDimensions

![][public]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 237)

```csharp theme={null}
int Phoenix.ModelCenter.PlugIn.ArrayIndexer.NumDimensions
```

The number of dimensions in the array.

**Return type**: int

### Property NumElements

![][public]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 245)

```csharp theme={null}
int Phoenix.ModelCenter.PlugIn.ArrayIndexer.NumElements
```

The number of elements in the array.

**Return type**: int

### Property Value

![][private]

**Definition**: `LIBS/DotNetUtils/Phoenix.ModelCenter.PlugIn/ArrayIndexer.cs` (line 250)

```csharp theme={null}
object Phoenix.ModelCenter.PlugIn.ArrayIndexer.Value
```

**Return type**: object

## Public functions

### Function ArrayIndexer

![][public]

```csharp theme={null}
Phoenix.ModelCenter.PlugIn.ArrayIndexer.ArrayIndexer(IArray array)
```

Constructor.

**Parameters**:

* **array**: The variable that implements IArray.

**Parameters**:

* IArray **array**

**Return type**:

### Function ArrayIndexer

![][public]

```csharp theme={null}
Phoenix.ModelCenter.PlugIn.ArrayIndexer.ArrayIndexer(IObjectVariable objVar, string mIndex)
```

Constructor.

**Parameters**:

* **objVar**: The variable that implements IObjectVariable.
* **mIndex**: The member index of the object.

**Parameters**:

* IObjectVariable **objVar**
* string **mIndex**

**Return type**:

### Function getElementValue

![][public]

```csharp theme={null}
object Phoenix.ModelCenter.PlugIn.ArrayIndexer.getElementValue(int elementNumber)
```

Gets the value of the specified element number, and moves the active element to the next element in the array.

**Parameters**:

* **elementNumber**: The number of the element to get.

**Returns**:

The value at the given element number.

**Parameters**:

* int **elementNumber**

**Return type**: object

### Function getValue

![][public]

```csharp theme={null}
object Phoenix.ModelCenter.PlugIn.ArrayIndexer.getValue(string variableName)
```

Gets the value at the array element specifed.

**Parameters**:

* **variableName**: The string representation of the array element.

**Returns**:

The value at that element.

**Parameters**:

* string **variableName**

**Return type**: object

## Private functions

### Function getLength

![][private]

```csharp theme={null}
int Phoenix.ModelCenter.PlugIn.ArrayIndexer.getLength(int dim)
```

**Parameters**:

* int **dim**

**Return type**: int

### Function reset

![][private]

```csharp theme={null}
void Phoenix.ModelCenter.PlugIn.ArrayIndexer.reset()
```

**Return type**: void

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[package]: https://img.shields.io/badge/-package-blueviolet "package"

[C#]: https://img.shields.io/badge/language-C%23-blue "C#"

[protected]: https://img.shields.io/badge/-protected-yellow "protected"

[private]: https://img.shields.io/badge/-private-red "private"
