Class TextRenderEventArgs
Specifies the event arguments available for the text render events in the chart component.
Inheritance
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class TextRenderEventArgs : BaseEventArgs
Properties
Border
Gets or sets the information of the border.
Declaration
public BorderModel Border { get; set; }
Property Value
Type | Description |
---|---|
BorderModel | A BorderModel object that defines the information of the border. |
Remarks
Use this property to modify or retrieve border characteristics, such as color, width, and style, as defined in the BorderModel.
Color
Gets or sets the color of the text.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts string value. |
Remarks
This property defines the visual appearance of the text color.
Font
Gets or sets the information of the font.
Declaration
public ChartDefaultFont Font { get; set; }
Property Value
Type | Description |
---|---|
ChartDefaultFont | A ChartDefaultFont object representing the font style of the text. |
Remarks
This property determines the font style used for rendering the text on the chart.
Location
Defines the text location.
Declaration
public LabelLocation Location { get; }
Property Value
Type | Description |
---|---|
LabelLocation | A LabelLocation object that specifies the text's location on the chart. |
Remarks
This property provides the coordinates for displaying the text within the chart area.
Point
Defines the text point.
Declaration
public Point Point { get; }
Property Value
Remarks
This property provides the data point associated with the text being rendered.
Series
Defines the current series.
Declaration
public ChartSeries Series { get; }
Property Value
Type | Description |
---|---|
ChartSeries | A ChartSeries object that represents the current series. |
Remarks
This property provides the chart series associated with the text being rendered.
SeriesIndex
Defines the current series index.
Declaration
public int SeriesIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Accepts an integer value. |
Remarks
This property provides the index of the series associated with the text rendering.
Template
Gets or sets the template used for the custom rendering of data points.
Declaration
public RenderFragment<ChartDataPointInfo> Template { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<ChartDataPointInfo> | A Microsoft.AspNetCore.Components.RenderFragment<> representing the custom template. |
Remarks
This property allows the user to define a custom rendering template for data points.
Text
Gets or sets the text to be rendered on the chart.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts the string value. |
Remarks
This property contains the text content to be displayed during the rendering event.