TE Edit Control .NET Core / .NET Framework Help
Product page

TerGetParaParam

Retrieve additional paragraph properties.

int TerGerParaParam(LineNo, IsStyleItem, type)
bool TerGetParaParam(LineNo, IsStyleItem, type, out color)
int LineNo;Line number to retrieve the paragraph information. To specify a para id instead of a line number, specify a negative value.
BOOL 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 colorUse by the override function to return the color related parameters.
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.