<RichEditName>.Text

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Richedit Control > Richedit Control Creation > CONTROL ADD RICHEDIT > RichEdit Properties >

<RichEditName>.Text

 

Description

 

GET/SET RichEdit text.

 

Syntax

 

' Set

sText = <richeditName>.Text

 

' Get

<richeditName>.Text = sText [, TextType [, Append]]

 

Returns (Get only)

 

String, text contents.

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

TextType

Number

Yes

One of the following equates:

%SF_TEXT (Default)

%SF_RTF

%RTF_UBB sBuffer will be analyzed in order to interpret possible presence of simple UBB like formatting codes like:
 

[B][/B]

for start/end bold

[I][/I]

for start/end italic

[U][/U]

for start/end underline

[S][/S]

for start/end strikeout

[LEFT]

for left align

[CENTER]

for center align

[RIGHT]

for right align

[SIZE=xx]

set font size

[FONT=FontName]

set font

[COLOR=n][/COLOR]

for foreground color blocks

n is the color number

 

n can be specified in r,g,b format like:

[COLOR=125,56,32]

 

n can be specified using a color name taken from predefined color equates

 

[BCOLOR=n][/BCOLOR]

for background color blocks

n is the color number

 

n can be specified also in r,g,b format like:

[BCOLOR=125,56,32]

 

n can be specified using a color name taken from predefined color equates

 

[CCOLOR=n]

for control background color

n is the color number

 

n can be specified also in r,g,b format like:

[CCOLOR=125,56,32]

 

n can be specified using a color name taken from predefined color equates

 

Append

Number

Yes

%TRUE or %FALSE indicating if text is to be appended to current text present in control

 

Remarks

 

Restrictions

 

See also

 

Examples