Class Shading
Represents the Shading class.
Namespace: Syncfusion.UI.Xaml.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.UWP.dll
Syntax
public sealed class Shading : BaseNode
Constructors
Shading()
Initializes a new instance of the Shading class.
Declaration
public Shading()
Shading(BaseNode)
Declaration
public Shading(BaseNode baseNode)
Parameters
| Type | Name | Description |
|---|---|---|
| BaseNode | baseNode | The owner of the Shading. It can be an instance of TableFormat or CellFormat. |
Fields
BackgroundColorProperty
Identifies the Background dependency property.
Declaration
public static readonly DependencyProperty BackgroundColorProperty
Field Value
| Type | Description |
|---|---|
| Windows.UI.Xaml.DependencyProperty | The identifier for the Background dependency property. |
TextureProperty
Identifies the Texture dependency property.
Declaration
public static readonly DependencyProperty TextureProperty
Field Value
| Type | Description |
|---|---|
| Windows.UI.Xaml.DependencyProperty | The identifier for the Texture dependency property. |
Properties
BackgroundColor
Gets or sets the background color.
Declaration
public Color BackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Windows.UI.Color | The background color. Default color is empty (#00000000) |
Examples
The following code example demonstrates how to define background color
<!-- Defines the background color -->
<RichTextBoxAdv:Shading>
<RichTextBoxAdv:Shading BackgroundColor = "#FF90EE90" />
</RichTextBoxAdv:Shading >
<!-- Define the background color. -->
// Defines the background color.
Shading shading = new Shading();
shading.BackgroundColor = Color.FromArgb(0xFF, 0x90, 0xEE, 0x90);
// Define the background color.
' Defines the background color.
Dim shading As New Shading()
shading.BackgroundColor = Color.FromArgb(&Hff, &H90, &Hee, &H90)
' Define the background color.
Texture
Gets or sets the TextureStyle.
Declaration
public TextureStyle Texture { get; set; }
Property Value
| Type | Description |
|---|---|
| TextureStyle | The texture style |
Examples
The following code example demonstrates how to define texture style.
<!-- Defines the texture style. -->
<RichTextBoxAdv:Shading>
<RichTextBoxAdv:Shading Texture = "Texture15Percent" />
</RichTextBoxAdv:Shading >
<!-- Define the texture style. -->
// Defines the texture style.
Shading shading = new Shading();
shading.Texture = TextureStyle.Texture15Percent;
// Define the texture style.
' Defines the texture style.
Dim shading As New Shading()
shading.Texture = TextureStyle.Texture15Percent
' Define the texture style.