Export (0) Print
Expand All

Title Class

Represents a title for the entire chart image.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public class Title : ChartNamedElement, IDisposable, 
	IChartMapArea

The Title type exposes the following members.

  NameDescription
Public methodTitle()Initializes a new instance of the Title class.
Public methodTitle(String)Initializes a new instance of the Title class with the specified title text.
Public methodTitle(String, Docking)Initializes a new instance of the Title class with the specified title text and docking value.
Public methodTitle(String, Docking, Font, Color)Initializes a new instance of the Title class with the specified title text, docking value, font and color.
Top

  NameDescription
Public propertyAlignmentGets or sets the alignment of the title.
Public propertyBackColorGets or sets the background color of the title.
Public propertyBackGradientStyleGets or sets the orientation for the background gradient of a title. Also determines whether a gradient is used.
Public propertyBackHatchStyleGets or sets the hatching style for the title.
Public propertyBackImageGets or sets the background image of the title.
Public propertyBackImageAlignmentGets or sets the alignment of the title background image.
Public propertyBackImageTransparentColorGets or sets a color that will be drawn as transparent when the background image is drawn.
Public propertyBackImageWrapModeGets or sets the drawing mode for the background image of the title.
Public propertyBackSecondaryColorGets or sets the secondary color of the title background.
Public propertyBorderColorGets or sets the border color of the title.
Public propertyBorderDashStyleGets or sets the border style of the title.
Public propertyBorderWidthGets or sets the border width of the title.
Public propertyDockedToChartAreaGets or sets the name of the ChartArea where the title will be docked.
Public propertyDockingGets or sets a value that determines where the title is docked.
Public propertyDockingOffsetGets or sets the positive or negative offset of the docked title position.
Public propertyFontGets or sets the font for the title.
Public propertyForeColorGets or sets the color of the title text.
Public propertyIsDockedInsideChartAreaGets or sets a flag that specifies whether the title should be docked within a ChartArea object.
Public propertyMapAreaAttributesGets or sets the map area attributes of the title.
Public propertyNameGets or sets the unique name of a Title object. (Overrides ChartNamedElement.Name.)
Public propertyPositionGets or sets an ElementPosition object, which can be used to get or set the position of the title.
Public propertyPostBackValueGets or sets the postback value that can be processed on a Click event.
Public propertyShadowColorGets or sets the shadow color for the title.
Public propertyShadowOffsetGets or sets the shadow offset, in pixels, of the title.
Public propertyTagGets or sets an object associated with this chart element. (Inherited from ChartElement.)
Public propertyTextGets or sets the text for the title.
Public propertyTextOrientationGets or sets the orientation of the text in the title.
Public propertyTextStyleGets or sets the style of the text for the title.
Public propertyToolTipGets or sets the tooltip for the title.
Public propertyUrlGets or sets the target URL of the hyperlink for the title.
Public propertyVisibleGets or sets a value that indicates whether the title is visible.
Top

  NameDescription
Public methodDispose()Releases the resources used by the ChartElement. (Inherited from ChartElement.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the Title and optionally releases the managed resources. (Overrides ChartElement.Dispose(Boolean).)
Public methodEqualsDetermines whether the specified Object is equal to the current ChartElement. (Inherited from ChartElement.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns a hash function for a particular type. (Inherited from ChartElement.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current Object. (Inherited from ChartElement.)
Top

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.

.NET Framework

Supported in: 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft