TE Edit Control Java / HTML-JavaScript Help
Product page

TerGetFrameSize

Retrieve the location and size of the frame.

boolean TerGetFrameSize( FrameId)
int FontId;Frame id to inquire. If the frame id is 0, the function returns the values for the frame at the current cursor location.

Upon a successful return from this method, the following information can be retrieved by using TerGetOutInt method:

int x;

the x location relative to the left edge of the page in twips units.

Upon a successful return from this method, the x value can be retrieve as following:

x=tej.TerGetOutInt("X")
int y;

the y location relative to the top edige of the page in twips units.

Upon a successful return from this method, the yd value can be retrieve as following:

y=tej.TerGetOutInt("Y")
int width;

the width of the frame in twips.

Upon a successful return from this method, the width value can be retrieve as following:

width=tej.TerGetOutInt("Width")
int height;

the height of the frame in twips.

Upon a successful return from this method, the height value can be retrieve as following:

height=tej.TerGetOutInt("Height")

Return Value: This function returns true when successful.