Class MathMatrixRow
Represents a single row in a MathMatrix. Each row contains a sequence of cell elements.
Maps to an OMML m:mr element.
Inherited Members
Namespace: DRIT.Presentation.Drawing.Mathematics
Assembly: DRIT.Presentation.dll
Syntax
public sealed class MathMatrixRow : IList<IMathElement>, ICollection<IMathElement>, IEnumerable<IMathElement>, IEnumerable
Constructors
MathMatrixRow()
Initializes a new instance of the math matrix row class.
Declaration
public MathMatrixRow()
MathMatrixRow(IEnumerable<IMathElement>)
Initializes a new instance of the math matrix row class.
Declaration
public MathMatrixRow(IEnumerable<IMathElement> elements)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IMathElement> | elements |
Properties
Count
Gets the number of cell elements in the row.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
IsReadOnly
Gets or sets whether is read only is enabled.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
this[int]
Gets or sets the cell element at the specified index.
Declaration
public IMathElement this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| IMathElement |
Methods
Add(IMathElement)
Adds the value to this math matrix row.
Declaration
public void Add(IMathElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | element | The element to add or process. |
Clear()
Removes all entries from this math matrix row.
Declaration
public void Clear()
Contains(IMathElement)
Determines whether this math matrix row contains the specified item.
Declaration
public bool Contains(IMathElement item)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| bool | true if the operation succeeds; otherwise, false. |
CopyTo(IMathElement[], int)
Copies the collection items to the supplied destination array.
Declaration
public void CopyTo(IMathElement[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement[] | array | The destination array that receives the copied items. |
| int | arrayIndex |
GetEnumerator()
Returns an enumerator that iterates through this collection.
Declaration
public IEnumerator<IMathElement> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<IMathElement> | An enumerator that iterates through this collection. |
IndexOf(IMathElement)
Returns the zero-based index of the specified item.
Declaration
public int IndexOf(IMathElement item)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| int | The index of value produced by the operation. |
Insert(int, IMathElement)
Inserts an item at the specified zero-based index.
Declaration
public void Insert(int index, IMathElement item)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |
| IMathElement | item | The item to add, remove, or inspect. |
Remove(IMathElement)
Removes the value from this math matrix row.
Declaration
public bool Remove(IMathElement item)
Parameters
| Type | Name | Description |
|---|---|---|
| IMathElement | item | The item to add, remove, or inspect. |
Returns
| Type | Description |
|---|---|
| bool | true if the operation succeeds; otherwise, false. |
RemoveAt(int)
Removes the item at the specified zero-based index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the item. |