ComponentOne RichTextBox for WPF
C1RichTextBox Appearance / ComponentOne ClearStyle Technology / C1RichTextBox ClearStyle Properties
In This Topic
    C1RichTextBox ClearStyle Properties
    In This Topic

    RichTextBox for WPF supports ComponentOne's new ClearStyle technology that allows you to easily change control colors without having to change control templates. By just setting a few color properties you can quickly style the control.

    The following table outlines the brush properties of the C1RichTextBox control:

    Brush

    Description

    Background

    Gets or sets the brush of the control’s background.

    BorderBrush

    Gets or sets the brush of the control’s border.

    SelectionBackground

    Gets or sets the brush used to fill the background of the selected text.

    SelectionForeground

    Gets or sets the brush used to fill the foreground of the selected text.

    You can completely change the appearance of the C1RichTextBox control by setting one or more properties, For example, if you set the Background property to "# FFE20C0C ", the C1RichTextBox control would appear similar to the following: