trichview.com

trichview.support




Re: setting the left margin


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/16/2003 23:29:14


Changing LeftMargin affects all document.

Text starts at position rv.LeftMargin+paragraph.LeftIndent

(+paragraph.FirstIndent for the first paragraph line).


If you change value of document margins (LeftMargin, etc.) you need to

reformat it (call rv.Format).


Changing properties of selected paragraphs can be done using

ApplyParaStyleConversion event.


Example is in

Demos\Delphi\Editors\Editor 2\

(it has Increase-Indent and Decrease-Indent buttons changing left margin of

the current paragraph).


Besides, you can use RichViewActions:

http://www.trichview.com/resources/actions/

to implement this functionality without writing any code.









Powered by ABC Amber Outlook Express Converter