B) Load CSS Stylesheet

[Top]  [Chapter]  [Previous]  [Next]

Text inside certain styles can be formatted using a style sheet.

If the CSS mode is active, the text inside elements with a name which is equal to a paragraph style uses the font definition of the style.

 

Mode=6

   Activate the CSS mode: wpdllInt1.Memo.SetXMLSchema("on", 6); 

   Deactivate the CSS mode: wpdllInt1.Memo.SetXMLSchema("off", 6);

 // You also need to execute wpdllInt1.Memo.SetXMLSchema("on", 0);

 

Mode=7: assign the style sheet from a string (CSS syntax)

 

CSS styles can be also loaded into the paragraph style collection using LoadStyleSheet.

 

Example CSS:

     Lemma { font-family:'Courier New';font-weight:bold;color:blue; }

     Entsprechung { font-family:'Tahoma';font-size:13.00pt; }

 

Screenshot:

xml_editing


[b_load_css_stylesheet.htm]    Copyright © 2007 by WPCubed GmbH