Class
DiagramShapeFillDescriptor

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:

cs-api-definition
public class DiagramShapeFillDescriptor : DataVizChildComponentDescriptor

Inheritance: objectDataVizChildComponentDescriptorDiagramShapeFillDescriptor

Constructors

DiagramShapeFillDescriptor()

Declaration

cs-api-definition
public DiagramShapeFillDescriptor()

Properties

Color

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.

Declaration

cs-api-definition
public string Color { get; set; }

Property Value

string

Opacity

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.

Declaration

cs-api-definition
public double? Opacity { get; set; }

Property Value

double?

Methods

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>