TPlusMemo.ClearStyle, ClearStyleRange
PlusMemo Help Send comments on this topic.
TPlusMemo.ClearStyle, ClearStyleRange

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

procedure ClearStyle(Pos: Integer);

procedure ClearStyleRange(FromRange, ToRange: Integer);

 

Description

The ClearStyle method checks whether the text position Pos lies in a section of text formatted by the automatic keywords, automatic start-stop keys or by method SetDynStyle.  If so, the formatting of this section is cleared, meaning that its attributes will return to the default formatting of the control.

 

The ClearStyleRange method returns all the text between FromRange and ToRange to the default formatting of the control.  If FromRange lies in a section of text formatted by the automatic keywords, automatic start-stop keys or by method SetDynStyle, this formatting will be kept for this section up to position FromRange.  If ToRange lies in a section of text formatted by the automatic keywords, automatic start-stop keys or by method SetDynStyle, this formatting will be kept for this section only from position ToRange up to the end of said section.