PrintMatrixFormat.Format Method |
Namespace: Imsl.MathAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntaxpublic virtual string Format(
PrintMatrixFormat. FormatType type,
Object entry,
int row,
int col,
PrintMatrixFormat. ParsePosition pos
)
Public Overridable Function Format (
type As PrintMatrixFormat.FormatType,
entry As Object,
row As Integer,
col As Integer,
pos As PrintMatrixFormat. ParsePosition
) As String
public:
virtual String^ Format(
PrintMatrixFormat. FormatType type,
Object^ entry,
int row,
int col,
PrintMatrixFormat. ParsePosition^ pos
)
abstract Format :
type : PrintMatrixFormat. FormatType *
entry : Object *
row : int *
col : int *
pos : PrintMatrixFormat. ParsePosition -> string
override Format :
type : PrintMatrixFormat. FormatType *
entry : Object *
row : int *
col : int *
pos : PrintMatrixFormat. ParsePosition -> string
Parameters
- type
- Type: Imsl.Math.PrintMatrixFormat.FormatType
The type of string requested. See PrintMatrixFormat.FormatType Enumeration.
- entry
- Type: System.Object
The entry to be formatted. This is only used if type equals Entry.
For other values of type, this can be set to null.
- row
- Type: System.Int32
The (0-based) row number of the element to be formatted. This is -1
if there is no row number associated with this request.
- col
- Type: System.Int32
The (0-based) column number of the element to be formatted. This is
-1 if there is no column number associated with this request.
- pos
- Type: Imsl.Math.PrintMatrixFormat.ParsePosition
A ParsePosition object used to indicate the alignment center
of the return string. This is used only if type is Entry.
Return Value
Type:
String
A
String to be put into the printed table.
RemarksNote, if type is not FormatType.Entry, pos will be set based on the following criteria.
entry |
behavior |
---|
double | The index is the
position of the decimal point. |
int | The index is the position
of the end of the formatted integer. |
See Also