Click or drag to resize
PrintMatrixFormatFormat Method
Returns a formatted string. This method is used by the methods Print(String) and PrintHTML(PrintMatrixFormat, Object, Int32, Int32). This method can be overridden to gain finer control over printing.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public virtual string Format(
	PrintMatrixFormatFormatType type,
	Object entry,
	int row,
	int col,
	PrintMatrixFormatParsePosition pos
)

Parameters

type
Type: Imsl.MathPrintMatrixFormatFormatType
The type of string requested. See PrintMatrixFormat.FormatType Enumeration.
entry
Type: SystemObject
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: SystemInt32
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: SystemInt32
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.MathPrintMatrixFormatParsePosition
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.
Remarks

Note, if type is not FormatType.Entry, pos will be set based on the following criteria.

entry behavior
doubleThe index is the position of the decimal point.
intThe index is the position of the end of the formatted integer.
See Also