Class
Shading

Configures background shading for document elements, combining a solid background color with an optional patterned foreground overlay.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model.Styles

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

cs-api-definition
public class Shading

Inheritance: objectShading

Constructors

Shading(IPropertiesWithShading)

Initializes a new instance of the Shading class.

Declaration

cs-api-definition
public Shading(IPropertiesWithShading properties)

Parameters

properties

IPropertiesWithShading

Properties implementing IPropertiesWithShading interface.

Properties

BackgroundColor

Controls the solid background fill color behind the element's content, supporting theme-aware colors.

Declaration

cs-api-definition
public ThemableColor BackgroundColor { get; set; }

Property Value

ThemableColor

The color of the background.

Pattern

Specifies the fill pattern style overlaid on the background, determining how the pattern color blends with the background; defaults to Clear.

Declaration

cs-api-definition
public ShadingPattern Pattern { get; set; }

Property Value

ShadingPattern

The default value is Clear

PatternColor

Controls the foreground color of the shading pattern overlaid on the background, supporting theme-aware colors.

Declaration

cs-api-definition
public ThemableColor PatternColor { get; set; }

Property Value

ThemableColor

The color of the pattern.