Class ChartTitleSettings
Inherited Members
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartTitleSettings : EJTagHelper
Constructors
ChartTitleSettings()
Declaration
public ChartTitleSettings()
Properties
Background
Background of the title border.
Declaration
[HtmlAttributeName("background")]
public string Background { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "transparent" |
Border
Options to customize the border of the chart title.
Declaration
[HtmlAttributeName("border")]
public object Border { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Color
Color for the text.
Declaration
[HtmlAttributeName("color")]
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
MvcTemplate<System.Object> |
FontFamily
FontFamily for the text.
Declaration
[HtmlAttributeName("fontFamily")]
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
FontStyle
FontStyle for the text.
Declaration
[HtmlAttributeName("fontStyle")]
public string FontStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Normal" |
FontWeight
FontWeight for the text.
Declaration
[HtmlAttributeName("fontWeight")]
public string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "500" |
Opacity
Opacity for the text.
Declaration
[HtmlAttributeName("opacity")]
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
Position
Defines the position for the chart title. Top: Displays the title at the top of the chart. Left: Displays the title at the left of the chart. Bottom: Displays the title at the bottom of the chart. Right: Displays the title at the right of the chart. Custom: Displays the title based on the given x and y values.
Declaration
[HtmlAttributeName("position")]
public TitlePosition Position { get; set; }
Property Value
Type | Description |
---|---|
TitlePosition | The default value is TitlePosition.Top |
Size
Font size for the text.
Declaration
[HtmlAttributeName("size")]
public string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "15px" |
TextAlignment
text alignment.
Declaration
[HtmlAttributeName("textAlignment")]
public Alignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
Alignment | The default value is Alignment.Center |
TextOverflow
Specifies the chart title text overflow.
Declaration
[HtmlAttributeName("textOverflow")]
public TextOverflow TextOverflow { get; set; }
Property Value
Type | Description |
---|---|
TextOverflow | The default value is TextOverflow.Wrap |
X
Defines the X coordinate for the chart title.
Declaration
[HtmlAttributeName("x")]
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |
Y
Defines the Y coordinate for the chart title.
Declaration
[HtmlAttributeName("y")]
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 |