Class Background
Represents the background effects.
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class Background : BaseNode
Constructors
Background()
Initializes a new instance of the Background class.
Declaration
public Background()
Background(BaseNode)
Initializes a new instance of the Background class for the specified Node.
Declaration
public Background(BaseNode owner)
Parameters
Type | Name | Description |
---|---|---|
BaseNode | owner | The owner of the Background. The value can be null or an instance of DocumentAdv or ListLevelAdv. |
Properties
Color
Gets or sets the background color of the document.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color | The default color is white. |
Examples
The following code example demonstrates how to sets the page background color in SfRichTextBoxAdv control.
// Defines the control.
SfRichTextBoxAdv richTextBoxAdv = new SfRichTextBoxAdv();
//Sets the document background color
richTextBoxAdv.Document.Background.Color = Colors.LightBlue;
/// ' Defines the control.
Dim richTextBoxAdv As New SfRichTextBoxAdv()
'Sets the document background color.
richTextBoxAdv.Document.Background.Color = Colors.LightBlue