rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.InsertOEMTextFromFile

Top  Previous  Next

Loads text file (in OEM-defined character set) FileName and inserts its content in the position of caret.

function InsertOEMTextFromFile(const FileName: String):Boolean;

"OEM" stands for "original equipment manufacturer". This is character set of MS DOS.

The inserted text (one or more text items) has current text and paragraph styles.

Method type: editstyle editing-style method for insertion.

unicode Unicode note: File content must be in OEM charset. Text will be converted to ANSI or to Unicode, depending on Unicode property of the current text style.

 

Return value:

"Was reading from from file successful?"

 

See also methods:

InsertTextFromFile;

InsertText.

See also properties:

CurParaStyleNo;

CurTextStyleNo.

See also properties of TRVStyle:

TextStyles;

ParaStyles;

SpacesInTab.

See also:

Saving and loading;

Inserting items in position of caret.


TRichView © trichview.com