TextFrameSetInternalMargin

Description

Sets the distance (in twips) between a text frame's border line and the text. Twip is a fabricated word meaning twentieth of a point (pt).

Applies to

RichTextEdit control

Syntax

boolean rtename.TextFrameSetInternalMargin(integer textFrameID, integer index, integer margin)

Argument

Description

textFrameID

The unique ID that identifies the text frame.

index Specifies one of the four possible margins: 1 -- Left; 2 -- Top; 3 -- Right; 4 -- Bottom.
margin The actual margin between the boder line and text, 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).

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 internal margins of the specified text frame.

integer li_frameid
boolean lb_rtn

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

//left margin
lb_rtn = rte_1.TextFrameSetInternalMargin(li_frameid,1,80)

//top margin
lb_rtn = rte_1.TextFrameSetInternalMargin(li_frameid,2,80)