TextFrameSetBorderWidth

Description

Sets the width of a text frame's border line in the RichTextEdit control.

Applies to

RichTextEdit control

Syntax

boolean rtename.TextFrameSetBorderWidth(integer textFrameID, integer width)

Argument

Description

textFrameID

The unique ID that identifies the text frame.

Width The width of the border line, in twips. For almost all units of measurement in the RichTextEdit control, twips are used. Twip is a fabricated word meaning twentieth of a point (pt). If the value is 0, the text frame has no border line. For altering the distance between the border line and the text, use the TextFrameSetInternalMargin function.

Return value

Boolean.

Returns true if it succeeds. Returns false if it fails. Returns null if any argument is null.

Examples

The following example sets the border width of the specified text frame.

integer li_frameid
boolean lb_rtn

li_frameid = rte_1.TextFrameInsertAsChar(-1,5000,1000)
lb_rtn = rte_1.TextFrameSetBorderWidth(li_frameid,50)