New to Telerik Document ProcessingStart a free 30-day trial

Shading

Class

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:

C#
public class Shading

Inheritance: objectShading

Constructors

Initializes a new instance of the Shading class.

C#
public Shading(IPropertiesWithShading properties)
Parameters:propertiesIPropertiesWithShading

Properties implementing IPropertiesWithShading interface.

Properties

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

C#
public ThemableColor BackgroundColor { get; set; }
Property Value:

The color of the background.

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

C#
public ShadingPattern Pattern { get; set; }
Property Value:

The default value is Clear

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

C#
public ThemableColor PatternColor { get; set; }
Property Value:

The color of the pattern.