| C1.Xaml.RichTextBox アセンブリ > C1.Xaml.RichTextBox 名前空間 : IStyleOverride インターフェース |

スタイルのオーバーライドは、ドキュメントを変更することなく C1RichTextBox に表示される C1.Xaml.RichTextBox.Documents.C1Document のスタイルを変更する方法です。
このインタフェースを実装するには、2つの方法があります。1つは、GetStyles が呼び出されるたびに C1RangeStyle のコレクションを計算します。または、事前に計算された C1RangeStyle のコレクションを用意し、GetStyles のパラメータとして渡された範囲内のスタイルを返します。2つ目の方法では、C1RangeStyleCollection を使用することをお勧めします。
オーバーライドできるのは、ドキュメントのレイアウトを変更しないスタイルプロパティだけです。たとえば、C1.Xaml.RichTextBox.Documents.C1TextElement.FontWeightProperty はオーバーライドできませんが、C1.Xaml.RichTextBox.Documents.C1TextElement.ForegroundProperty はオーバーライドできます。
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