Title Title Title Title Class

Definition

Represents a title for the entire chart image.

public ref class Title : System::Web::UI::DataVisualization::Charting::ChartNamedElement, IDisposable, System::Web::UI::DataVisualization::Charting::IChartMapArea
public class Title : System.Web.UI.DataVisualization.Charting.ChartNamedElement, IDisposable, System.Web.UI.DataVisualization.Charting.IChartMapArea
type Title = class
    inherit ChartNamedElement
    interface IDisposable
    interface IChartMapArea
Public Class Title
Inherits ChartNamedElement
Implements IChartMapArea, IDisposable
Inheritance
Implements

Remarks

The Title class encapsulates all the functionality of a title for the Chart control. This class is exposed using the Titles collection property of the root Chart object.

There can be any number of titles for an entire chart image.

Titles are able to:

  • Be docked and aligned or custom-positioned.

  • Be displayed inside or outside the plotted chart areas.

  • Use a predefined TextStyle such as Embed or Shadow.

  • Use hatching, gradient colors and background images.

  • Be sized and positioned anywhere within the chart image.

Constructors

Title() Title() Title() Title()

Initializes a new instance of the Title class.

Title(String) Title(String) Title(String) Title(String)

Initializes a new instance of the Title class with the specified title text.

Title(String, Docking) Title(String, Docking) Title(String, Docking) Title(String, Docking)

Initializes a new instance of the Title class with the specified title text and docking value.

Title(String, Docking, Font, Color) Title(String, Docking, Font, Color) Title(String, Docking, Font, Color) Title(String, Docking, Font, Color)

Initializes a new instance of the Title class with the specified title text, docking value, font and color.

Properties

Alignment Alignment Alignment Alignment

Gets or sets the alignment of the title.

BackColor BackColor BackColor BackColor

Gets or sets the background color of the title.

BackGradientStyle BackGradientStyle BackGradientStyle BackGradientStyle

Gets or sets the orientation for the background gradient of a title. Also determines whether a gradient is used.

BackHatchStyle BackHatchStyle BackHatchStyle BackHatchStyle

Gets or sets the hatching style for the title.

BackImage BackImage BackImage BackImage

Gets or sets the background image of the title.

BackImageAlignment BackImageAlignment BackImageAlignment BackImageAlignment

Gets or sets the alignment of the title background image.

BackImageTransparentColor BackImageTransparentColor BackImageTransparentColor BackImageTransparentColor

Gets or sets a color that will be drawn as transparent when the background image is drawn.

BackImageWrapMode BackImageWrapMode BackImageWrapMode BackImageWrapMode

Gets or sets the drawing mode for the background image of the title.

BackSecondaryColor BackSecondaryColor BackSecondaryColor BackSecondaryColor

Gets or sets the secondary color of the title background.

BorderColor BorderColor BorderColor BorderColor

Gets or sets the border color of the title.

BorderDashStyle BorderDashStyle BorderDashStyle BorderDashStyle

Gets or sets the border style of the title.

BorderWidth BorderWidth BorderWidth BorderWidth

Gets or sets the border width of the title.

DockedToChartArea DockedToChartArea DockedToChartArea DockedToChartArea

Gets or sets the name of the ChartArea where the title will be docked.

Docking Docking Docking Docking

Gets or sets a value that determines where the title is docked.

DockingOffset DockingOffset DockingOffset DockingOffset

Gets or sets the positive or negative offset of the docked title position.

Font Font Font Font

Gets or sets the font for the title.

ForeColor ForeColor ForeColor ForeColor

Gets or sets the color of the title text.

IsDockedInsideChartArea IsDockedInsideChartArea IsDockedInsideChartArea IsDockedInsideChartArea

Gets or sets a flag that specifies whether the title should be docked within a ChartArea object.

MapAreaAttributes MapAreaAttributes MapAreaAttributes MapAreaAttributes

Gets or sets the map area attributes of the title.

Name Name Name Name

Gets or sets the unique name of a Title object.

Position Position Position Position

Gets or sets an ElementPosition object, which can be used to get or set the position of the title.

PostBackValue PostBackValue PostBackValue PostBackValue

Gets or sets the postback value that can be processed on a Click event.

ShadowColor ShadowColor ShadowColor ShadowColor

Gets or sets the shadow color for the title.

ShadowOffset ShadowOffset ShadowOffset ShadowOffset

Gets or sets the shadow offset, in pixels, of the title.

Tag Tag Tag Tag

Gets or sets an object associated with this chart element.

(Inherited from ChartElement)
Text Text Text Text

Gets or sets the text for the title.

TextOrientation TextOrientation TextOrientation TextOrientation

Gets or sets the orientation of the text in the title.

TextStyle TextStyle TextStyle TextStyle

Gets or sets the style of the text for the title.

ToolTip ToolTip ToolTip ToolTip

Gets or sets the tooltip for the title.

Url Url Url Url

Gets or sets the target URL of the hyperlink for the title.

Visible Visible Visible Visible

Gets or sets a value that indicates whether the title is visible.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases the resources used by the ChartElement.

(Inherited from ChartElement)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the Title and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified Object is equal to the current ChartElement.

(Inherited from ChartElement)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns a hash function for a particular type.

(Inherited from ChartElement)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current Object.

(Inherited from ChartElement)

Applies to