New to Telerik UI for BlazorStart a free 30-day trial

Controls the fill color and appearance inside a diagram shape. Use this to set solid colors, gradients, or patterns for the shape's interior background. Example: "#E74C3C" for a solid red fill, or configure gradients for visual depth and dimension.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class DiagramShapeFillDescriptor : DataVizChildComponentDescriptor

Inheritance: objectDataVizChildComponentDescriptorDiagramShapeFillDescriptor

Constructors

C#
public DiagramShapeFillDescriptor()

Methods

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

Sets the background fill color of the shape. Use any valid CSS color value such as hex codes (e.g., "#FF5733"), color names (e.g., "red"), or rgba values. This property defines the interior color of the shape, distinct from the border color set by Color.

C#
public string Color { get; set; }

Sets the transparency level of the shape's fill color. Accepts values from 0 (fully transparent) to 1 (fully opaque). For example, 0.5 creates a 50% transparent fill. Opacity affects only the fill color, not the stroke or other shape elements.

C#
public double? Opacity { get; set; }