TE Edit Control Java / HTML-JavaScript Help
Product page

TerGetDrawObjectInfo

Retrieve information about a drawing object.

boolean TerGetDrawObjectInfo( FrameId)
int FrameId;The frame id of the drawing object to inquire

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

int width;

The width (twips) of the text box or the rectangle object.

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

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

The height (twips) of the text box or the rectangle object.

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

Height=tej.TerGetOutInt("Height")
int LineWidth;

The line width (twips) of the line object.

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

LineWidth=tej.TerGetOutInt("LineWidth")
Color LineColor;

The color of the line object.

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

LineColor=tej.TerGetOutColor("LineColor")
Color FillColor;

The fill color for the text box or the rectangle object.

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

FillColor=tej.TerGetOutColor("BackColor")
int flags;The object flags:
PARA_FRAME_TEXT_BOX:Indicates a text box
PARA_FRAME_LINE:Indicates a line object
PARA_FRAME_RECT:Indicates a rectangle object
PARA_FRAME_BOXED:The text box or the rectangle object is boxed.
PARA_FRAME_DOOTED:Indicates dotted border

Upon a successful return from this method, the row-id flag can be retrieve as following:

flags=tej.TerGetOutInt("flags")

Return Value: This function returns true if successful.