ZOSAPI.Editors.IEditorCell Interface Reference
Last update: 17.07.2025Interface used to get and set data for a specific cell in an editor. This interface can be accessed via: More...
Public Member Functions | |
| ISolveData | GetSolveData () |
| Gets the current solve data. Use CreateSolveType to retrieve an interface that can be used to change the solve type. Note that the solve will not be updated until SetSolveData is called with the new settings. | |
| int | GetNumberOfSolveTypes () |
| Gets the number of solve types allowed for this specific editor cell. | |
| bool | IsSolveTypeSupported (SolveType st) |
| Determines whether the specified solve type is supported by this specific cell. | |
| SolveType[] | GetAvailableSolveTypes () |
| Gets the available solve types for this cell. | |
| void | FillAvailableSolveTypes (int Length, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex=0)][In, Out]SolveType[] solves) |
| Alternate method of retrieving available cell types, accessible via COM. | |
| ISolveData | CreateSolveType (SolveType type) |
| Creates the solve type settings for the specified solve type. Note that SetSolveData must be used to actually update the system with the solve settings. | |
| SolveStatus | SetSolveData (ISolveData Data) |
| Updates the system with the new solve type settings (see also CreateSolveType and GetSolveData). | |
| bool | MakeSolveVariable () |
| Sets the solve type to SolveType.Variable. | |
| bool | MakeSolveFixed () |
| Sets the solve type to SolveType.Fixed. | |
Properties | |
| IEditorRow | Row [get] |
| Gets the parent row for this cell. | |
| int | Col [get] |
| Gets the column index for this cell. | |
| bool | IsActive [get] |
| Gets a value indicating whether this cell is currently active (i.e. in use by the current system). | |
| bool | IsReadOnly [get] |
| Gets a value indicating whether this cell can be modified. | |
| string | Header [get] |
| Gets the column header for this cell. | |
| CellDataType | DataType [get] |
| Gets the data type of this cell. | |
| int | IntegerValue [get, set] |
| Gets or sets the integer value of this cell. Note that if DataType is not CellDataType.Integer, attempting to get or set a value in this way will result in an exception. | |
| double | DoubleValue [get, set] |
| Gets or sets the double precision value of this cell. Note that if DataType is not CellDataType.Double, attempting to get or set a value in this way will result in an exception. | |
| string | Value [get, set] |
| Gets or sets the value of this cell. Note that this method can be used regardless of the DataType. | |
| SolveType | Solve [get] |
| Gets the type of the current solve. | |
Detailed Description
Interface used to get and set data for a specific cell in an editor. This interface can be accessed via:
IEditorRow
ILDERow
INCERow
Member Function Documentation
◆ CreateSolveType()
| ISolveData ZOSAPI.Editors.IEditorCell.CreateSolveType | ( | SolveType | type | ) |
Creates the solve type settings for the specified solve type. Note that SetSolveData must be used to actually update the system with the solve settings.
Usage (see Example 15 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
type The solve type.
- Returns
◆ FillAvailableSolveTypes()
| void ZOSAPI.Editors.IEditorCell.FillAvailableSolveTypes | ( | int | Length, |
| [In, Out] SolveType[] | solves | ||
| ) |
Alternate method of retrieving available cell types, accessible via COM.
- Parameters
-
Length The length of the input array (must be equal to GetNumberOfSolveTypes. solves The solve type array to fill. Note that this must be allocated before calling this method.
◆ GetAvailableSolveTypes()
| SolveType[] ZOSAPI.Editors.IEditorCell.GetAvailableSolveTypes | ( | ) |
Gets the available solve types for this cell.
- Returns
◆ GetNumberOfSolveTypes()
| int ZOSAPI.Editors.IEditorCell.GetNumberOfSolveTypes | ( | ) |
Gets the number of solve types allowed for this specific editor cell.
- Returns
◆ GetSolveData()
| ISolveData ZOSAPI.Editors.IEditorCell.GetSolveData | ( | ) |
Gets the current solve data. Use CreateSolveType to retrieve an interface that can be used to change the solve type. Note that the solve will not be updated until SetSolveData is called with the new settings.
- Returns
◆ IsSolveTypeSupported()
| bool ZOSAPI.Editors.IEditorCell.IsSolveTypeSupported | ( | SolveType | st | ) |
Determines whether the specified solve type is supported by this specific cell.
- Parameters
-
st The solve type.
- Returns
trueif the input solve type can be used; otherwisefalse.
◆ MakeSolveFixed()
| bool ZOSAPI.Editors.IEditorCell.MakeSolveFixed | ( | ) |
Sets the solve type to SolveType.Fixed.
- Returns
trueif the change succeeded; otherwise,false
◆ MakeSolveVariable()
| bool ZOSAPI.Editors.IEditorCell.MakeSolveVariable | ( | ) |
Sets the solve type to SolveType.Variable.
Usage (see Example 15 for a full sample)
C#
C++
Matlab
Python
- Returns
trueif the change succeeded; otherwise,false
◆ SetSolveData()
| SolveStatus ZOSAPI.Editors.IEditorCell.SetSolveData | ( | ISolveData | Data | ) |
Updates the system with the new solve type settings (see also CreateSolveType and GetSolveData).
Usage (see Example 15 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
Data The new solve settings.
- Returns
- A value indicating whether or not changing the solve settings was successful.
Property Documentation
◆ Col
|
get |
Gets the column index for this cell.
The cell column index.
◆ DataType
|
get |
Gets the data type of this cell.
The type of this cell.
◆ DoubleValue
|
getset |
Gets or sets the double precision value of this cell. Note that if DataType is not CellDataType.Double, attempting to get or set a value in this way will result in an exception.
Usage (see Example 21 for a full sample)
C#
C++
Matlab
Python
The double precision value.
- Exceptions
-
ArgumentException
◆ Header
|
get |
Gets the column header for this cell.
The cell header.
◆ IntegerValue
|
getset |
Gets or sets the integer value of this cell. Note that if DataType is not CellDataType.Integer, attempting to get or set a value in this way will result in an exception.
Usage (see Example 21 for a full sample)
C#
C++
Matlab
Python
The integer value.
- Exceptions
-
ArgumentException
◆ IsActive
|
get |
Gets a value indicating whether this cell is currently active (i.e. in use by the current system).
true if this instance is active; otherwise, false.
◆ IsReadOnly
|
get |
Gets a value indicating whether this cell can be modified.
true if this instance is read only; otherwise, false.
◆ Row
|
get |
Gets the parent row for this cell.
The row.
◆ Solve
|
get |
Gets the type of the current solve.
The solve.
◆ Value
|
getset |
Gets or sets the value of this cell. Note that this method can be used regardless of the DataType.
Usage (see Example 21 for a full sample)
C#
C++
Matlab
Python
The cell value.