Change current writing mode

<< Click to Display Table of Contents >>

Navigation:  Programming > Change text attributes in code > Character Attributes >

Change current writing mode

See property WPRichText.CurrAttr, here you can set attributes such as Bold, Italic etc. using AddStyle and DeleteStyle. CurrAttr also controls the paragraph attributes (Alignment) indents and spacing. CurrAttr will change the current writing mode or the selected text - if text is selected. See this FAQ if you want to implement ShortCuts, such a Ctr+B = bold. WPTools Version 9 also has more specialized attribute interfaces. They can be used to only change the current attribute, only the selected text, the attributes of the text which was found by "Finder" or the attributes of merged text. (Attribute Interface Category)