TextAttr |
[Top] [Chapter] [Previous] [Next] |
Declaration IWPAttrInterface TextAttr; Description This is the interface to the change the current writing (CurrAttr) attribute of the active editor unless text is selected. In case text has been is selected the properties of the selected text (CurrSelAttr) will be updated. To change paragraph attributes please use CurrPar. This property is used best to apply and read the text attributes to implement a custom toolbar. Example: private void wpdllInt1_OnUpdateGUI( object Sender, int Editor, int UpdateFlags, int StateFlags, int PageNr, int PageCount, int LineNr) { string n = ""; wpdllInt1.Memo.TextAttr.GetFontface(ref n); FontCombo.Text = n; }
If a function of TextAttr returns FALSE this means the default attribute is used for this property. The default text attributes can be changed in Memo.DefaultAttr.
|