Skip to content

Commit b957b82

Browse files
authored
Update richtexteditor-set-background-colors.md
1 parent 056f6a1 commit b957b82

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

knowledge-base/richtexteditor-set-background-colors.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,17 @@ description: Learn how to set the document background and the editor background
44
type: how-to
55
page_title: How to Change Document and Editor Background Colors in UI for WinForms RichTextEditor
66
meta_title: How to Change Document and Editor Background Colors in UI for WinForms RichTextEditor
7-
slug: set-document-editor-background-ui-winforms-richtexteditor
7+
slug: richtexteditor-set-background-colors
88
tags: richtexteditor, ui for winforms, document background, editor background, pagebackcolor, backcolor
99
res_type: kb
1010
ticketid: 1700509
1111
---
1212

1313
## Environment
14-
<table>
15-
<tbody>
16-
<tr>
17-
<td>Product</td>
18-
<td>RichTextEditor for UI for WinForms</td>
19-
</tr>
20-
<tr>
21-
<td>Version</td>
22-
<td>2025.3.812</td>
23-
</tr>
24-
</tbody>
25-
</table>
14+
15+
|Product Version|Product|Author|
16+
|----|----|----|
17+
|2025.3.812|RichTextEditor for WinForms|[Nadya Karaivanova](https://www.telerik.com/blogs/author/nadya-karaivanova)|
2618

2719
## Description
2820

@@ -43,15 +35,13 @@ To set the desired background colors for the document and editor:
4335
Example code:
4436

4537
```csharp
46-
// Set editor background to gray
38+
// Set editor background color
4739
this.radRichTextEditor1.RichTextBoxElement.BackColor = Color.LightGray;
4840

49-
// Set document background to white
41+
// Set page background
5042
this.radRichTextEditor1.PageBackColor = Color.White;
5143
```
5244

5345
## See Also
5446

5547
- [RichTextEditor Overview](https://docs.telerik.com/devtools/winforms/controls/richtexteditor/overview)
56-
- [BackColor Property Documentation](https://docs.telerik.com/devtools/winforms/controls/richtexteditor/api/telerik.winforms.ui.radtextboxelement.backcolor)
57-
- [PageBackColor Property Documentation](https://docs.telerik.com/devtools/winforms/controls/richtexteditor/api/telerik.winforms.ui.radrichtexteditor.pagebackcolor)

0 commit comments

Comments
 (0)