TE Edit Control Java / HTML-JavaScript Help
Product page

TerGetParaParam

Retrieve additional paragraph properties.

int TerGerParaParam(LineNo, IsStyleItem, type)
boolean TerGetParaParamClr(LineNo, IsStyleItem, type)
int LineNo;Line number to retrieve the paragraph information. To specify a para id instead of a line number, specify a negative value.
boolean IsStyleItem;This parameter allows you to retrieve the paragraph information for a style item. When this flag is set to TRUE, the LineNo parameter should be used to pass a style id to retrieve its information. You can also set the LineNo to SID_CUR to get the paragraph information about the style being currently edited.
int typeParameter type to retrieve.
Color color

Use by the override function to return the color related parameters using the TerGetOutColor or TerGetOutStr methods.

Color color=tej.TerGetOutColor("Color");

or

String color = tej.TerGetOutStr("Color"); 
   //return the color in the string format.
PARAINFO_TEXT_FLOWParagraph text flow. Please refer to the TerSetParaTextFlow function for the list of text flow constants.
PARAINFO_BORDER_COLORParagraph border color.
PARAINFO_BK_COLORParagraph background color.

Return Value: This function returns the value of the requested parameter. It returns PARAINFO_ERROR to indicate an error condition.