Color legend plain property dependency property method
The style class of RichTextBox: the properties a style can set on it. Part styles ScrollBarsStyle (SliderStyle) and BackgroundStyle (ImageStyle). Framework defaults: Text empty, InheritState.FromChildren, and FontSize, ForegroundColor, TextCursorThickness, TextCursorColor, TextSelectionColor and ScrollBarsThickness from DefaultSettings.
A class deriving from BaseStyle. The styles page shows it in context.
Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.
Properties
BackgroundStyle 🠆
ImageStyle · The style of the image the box draws behind its text.
CharacterPrintDelayMs 🠆
int · The time between two characters printed by AnimateText, in milliseconds. Negative values become 0; 0 sets the text at once.
EnterTypesLineBreak 🠆
bool · Whether Enter types a line break in a read-write box; Ctrl+Enter then ends the editing. Default false.
FontPath 🠆
string · The path of a TTF or OTF file to draw with (see Fonts). A path that loads replaces the font system in use; an empty or unreadable path goes back to the general font, but keeps a font system you set by hand (as a label does).
FontSize 🠆
float · The font size in units. Negative values become 0, and 0 draws nothing. Default DefaultSettings.DefaultFontSize (14).
Formatting 🠆
RichTextBoxFormatting · Whether a read-only box reads rich formatting tags out of its text. Default Plain.
InputType 🠆
RichTextBoxInputType · Whether typing inserts or replaces the character at the caret. The Insert key switches it. Default Insert.
LineSpacing 🠆
int · Extra space between two lines, in units. Negative values become 0.
RichOutlineThickness 🠆
float · How far the outline of an [o=n] tag reaches around the letters, in units. Default 1.
ScrollBars 🠆
ScrollBars · Which scroll bars the box may show when its text is larger than the box. Default None.
ScrollBarsStyle 🠆
SliderStyle · The style of the scroll bars.
ScrollBarsThickness 🠆
int · The thickness of the scroll bars in units. Default 12 (DefaultSettings.DefaultScrollBarsThickness).
ScrollToEndDuringTextAnimation 🠆
bool · Whether AnimateText keeps the box scrolled to the end while it prints.
Text 🠆
string · The text shown. Line breaks become \n, tabs become spaces, then TextFilter is applied. Default "".
TextAlignment 🠆
TextAlignment · How each line is placed across the width. Justify widens the spaces of wrapped lines in a box with a width of its own. Default Left.
TextCursorColor 🠆
Color · The color of the caret. Default DefaultSettings.DefaultTextCursorColor (black).
TextCursorThickness 🠆
int · The width of the caret bar, or the height of the overwrite underline, in units. Default DefaultSettings.DefaultTextCursorThickness (1).
TextFilter 🠆
Func<string, string> · Transforms every text assigned to Text, edits included. Setting it filters the current text.
TextMargin 🠆
Margin · The space between the box’s edges and its text, in units.
TextSelectionColor 🠆
Color · The color behind selected text. Default DefaultSettings.DefaultTextSelectionColor (light blue).
Type 🠆
RichTextBoxType · Whether the text can be edited. Default ReadOnly.
VerticalTextAlignment 🠆
VerticalTextAlignment · Where the lines sit in a box taller than its text. Applies only while the text fits; a scrolling text starts at the top. Default Top.
WrapType 🠆
TextWrap · Whether lines break to fit the width (with a fixed or stretched width, or a MaxWidth). Words wider than a line are broken. Default NoWrap.
Methods
RichTextBoxStyle()
IsSet() 🠆
IsSet(string propertyName) · Whether the property is assigned to this style, so the style applies it. Pass the name with nameof; an unknown name gives false.
| Parameter | Type | Description |
|---|---|---|
propertyName |
string |
The name of a property of the style; nameof keeps it right. |