TE Edit Control Win32 / Win64 Help
Product page

TerInsertLineObject

Insert a line object.

int TerInsertLineObject(hWnd, x1, y1, x2, y2)
HWND hWnd;Editor window to access
int x1;X position of the first point of the line.
int y1;Y position of the first point of the line.
int x2;X position of the second point of the line.
int y2;Y position of the second point of the line.

Comments: The point positions are specified in the twips units. The x locations are relative to the left margin of the page. The Y positions are relative to the beginning of the current paragraph.

Return Value: When successful this function returns the paragraph frame id of the new line object. Otherwise it returns 0.