Nevron Open Vision Documentation
Inline Styles

Inline styles are rich text styles that can be applied to inline elements. The InlineRule property of the inline style exposes the properties you can use to style an inline like FontName, FontSize, FontStyle, Fill, BackgroundFill, etc. The code below shows how to create and inline style and apply it to a text inline:

Inline Style Example
Copy Code
NInlineStyle style = new NInlineStyle("Style1");
style.Rule = new NInlineRule(NColor.Red);
style.Rule.FontStyle = ENFontStyle.Bold;

As a result the text of the styled inline will become red and bold.

See Also
Send Feedback