RichTextBox for WinRT
IStyleOverride Interface
Members 


This interface is implemented to provide style overrides to a C1RichTextBox.
Object Model
IStyleOverride Interface
Syntax
'Declaration
 
Public Interface IStyleOverride 
'Usage
 
Dim instance As IStyleOverride
public interface IStyleOverride 
Remarks

A style override is a way to modify the style of a C1.Xaml.RichTextBox.Documents.C1Document displayed in a C1RichTextBox without modifying the document.

There are two approaches to implementing this interface. An implementation could either calculate the collection of C1RangeStyle each time GetStyles is called, or have a pre calculated collection of C1RangeStyle, and return the ones inside the range passed as a parameter to GetStyles. For the second approach, the use of C1RangeStyleCollection is recommended.

Note that only style properties that do not change the layout of the document can be overridden. As an example, C1.Xaml.RichTextBox.Documents.C1TextElement.FontWeightProperty cannot be overridden, but C1.Xaml.RichTextBox.Documents.C1TextElement.ForegroundProperty can.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IStyleOverride Members
C1.Xaml.RichTextBox Namespace

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback