RichTextKit v0.4

IStyle Interface

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit

Provides styling information for a run of text.

public interface IStyle

Implemented By

Style

Properties

BackgroundColor

The background color of this run.

FontFamily

The font family for text this text run.

FontItalic

True if the text in this run should be displayed in an italic font; otherwise False.

FontSize

The font size for text in this run.

FontVariant

The font variant (ie: super/sub-script) for text in this run.

FontWeight

The font weight for text in this run.

LetterSpacing

Extra spacing between each character

LineHeight

The line height for text in this run as a multiplier (defaults to 1)

ReplacementCharacter

Specifies a replacement character to be displayed (password mode)

StrikeThrough

The strike through style for the text in this run

TextColor

The text color for text in this run.

TextDirection

Text direction override for this span

Underline

The underline style for text in this run.

Extension Methods

HasSameLayout(this IStyle, IStyle)

Compares this style to another and returns true if both will have the same layout, but not necessarily the same appearance (eg: color change, underline etc...)

IsSame(this IStyle, IStyle)

Compares this style to another and returns true if both will have the same layout, but not necessarily the same appearance (eg: color change, underline etc...)

Key(this IStyle)

Generates a string key that uniquely identifies the formatting characteristics of this style.

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.