Class ChartTitle
ChartTitle is lets you define a custom title for the chart control.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Windows.dll
Syntax
public sealed class ChartTitle : ChartDockControl, IChartDockControl
Constructors
ChartTitle()
Initializes a new instance of the ChartTitle class.
Declaration
public ChartTitle()
Properties
AutoSize
Gets or Sets the value to true or false. If set as true then the size is determined automatically based on the text of the title.
Declaration
public override bool AutoSize { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
BackColor
Get or set background color of title. Default is Transparent.
Declaration
public override Color BackColor { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Color |
Border
Gets the Configuration information for the border.
Declaration
public LineInfo Border { get; }
Property Value
| Type |
|---|
| LineInfo |
Dock
Specifies the position and manner in which a ChartTitle is docked.
Declaration
public override DockStyle Dock { get; set; }
Property Value
| Type |
|---|
| System.Windows.Forms.DockStyle |
Font
Gets or sets the font of the text displayed by the control.
Declaration
public override Font Font { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Font |
Location
Gets or Sets location of title.
Declaration
public Point Location { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Point |
Margin
Gets or sets margin around the text. Default is 4.
Declaration
public int Margin { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Orientation
This member override Orientation property.
Declaration
public override ChartOrientation Orientation { get; set; }
Property Value
| Type |
|---|
| ChartOrientation |
Overrides
Position
This member override Position property.
Declaration
public override ChartDock Position { get; set; }
Property Value
| Type |
|---|
| ChartDock |
Overrides
ShowBorder
Gets or sets a value indicating whether [show border].
Declaration
public bool ShowBorder { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Size
Gets or sets the height and width of the control.
Declaration
public Size Size { get; set; }
Property Value
| Type |
|---|
| System.Drawing.Size |
TabIndex
Gets or sets the tab order of the control within its container.
Declaration
public int TabIndex { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Text
Gets or sets the text displayed by the control.
Declaration
[ChartTemplate(ChartTemplateSet.Simple)]
public string Text { get; set; }
Property Value
| Type |
|---|
| System.String |
Visible
Gets or sets a value indicating whether the control and all its parent controls are displayed.
Declaration
public bool Visible { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Methods
Dispose(Boolean)
Releases the unmanaged resources used by the System.Windows.Forms.Control and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Measure(SizeF)
Measure size of control.
Declaration
public override SizeF Measure(SizeF size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.SizeF | size |
Returns
| Type | Description |
|---|---|
| System.Drawing.SizeF | Returns Size of control. |
Overrides
OnDoubleClick(EventArgs)
This method override System.Windows.Forms.Control.OnDoubleClick(System.EventArgs) method.
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | An System.EventArgs that contains the event data. |
OnFontChanged(EventArgs)
This method override System.Windows.Forms.Control.OnFontChanged(System.EventArgs) method.
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | An System.EventArgs that contains the event data. |
OnPaint(PaintEventArgs)
This method override System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs) method.
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Forms.PaintEventArgs | e | A System.Windows.Forms.PaintEventArgs that contains the event data. |
OnTextChanged(EventArgs)
This method override System.Windows.Forms.Control.OnTextChanged(System.EventArgs) method.
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventArgs | e | An System.EventArgs that contains the event data. |