TE Edit Control Java / HTML-JavaScript Help
Product page

TerSetSectBorder

Get the page border attribute for a section.

boolean TerGetSectBorder( sect, out type, out width, out space, out color)
int sect;Section id to access. You can also set this parameter to SECT_CUR to specify the current section.

Upon a successful return from this method, the TerGetOutInt and related methods can be used to retrieve the temporarily saved values for these variables:

int type;Border type. It can be one of the following constants:
BRDRTYPE_SINGLE            Single line border
BRDRTYPE_DBL               Double line border	BRDRTYPE_TRIPLE            Triple line border
BRDRTYPE_SHADOW            Shadow border
BRDRTYPE_THICK_THIN        Thick-thin lines border
BRDRTYPE_THIN_THICK        Thin-thick lines border
BRDRTYPE_THICK_THIN_THICK  Thick-thin-thick border
BRDRTYPE_THIN_THICK_THIN   Thin-thick-thin border
BRDRTYPE_NONE              No Border

The following three parameters are not used when border type is BRDRTYPE_NONE

To retrieve this value:

type=TerGetOutInt("BorderType");
int width;

The variable to retrieve the line thickness in twips units.

Example:

type=TerGetOutInt("BorderWidth");
int space;

The variable to retrieve the border distance from the edge of the page in twips units, Example:

type=TerGetOutInt("BorderSpace");
Color color;The variable to retrieve the border color

Return Value: The function returns true when successful.