AJ
Ajish
Syncfusion Team
July 3, 2007 09:04 PM UTC
Hi Christian,
Thank you for your interest in Essential DocIO.
Essential DocIO supports creation of custom styles that can apply a whole group of formats in one simple task. This sample demonstrates how custom styles can be created and applied using Essential DocIO.
Here is a code snippet to create and apply custom styles.
// Create Paragraph styles
IParagraphStyle style = document.AddParagraphStyle ( "MyStyle");
style.CharacterFormat.FontName = "Bitstream VeraSerif";
style.CharacterFormat.FontSize = 10f;
// Applying style to the current paragraph.
paragraph.ApplyStyle ( "MyStyle" );
A sample demonstrating support for StylesAnd Formatting is available along with our install and it can be found at the following path
C:\Documents and Settings\{user}\My Documents\Syncfusion\EssentialStudio\5.1.1.0\Windows\DocIO.Windows\Samples\2.0\Document Formatting\StylesAndFormatting\cs
Kindly take a look and let us know if you have any other questions.
Regards,
Ajish.