Title Class
TOC
Collapse the table of content
Expand the table of content

Title Class

.NET Framework (current version)
 

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

NameDescription
System_CAPS_pubmethodTitle()

Initializes a new instance of the Title class.

System_CAPS_pubmethodTitle(String)

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

System_CAPS_pubmethodTitle(String, Docking)

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

System_CAPS_pubmethodTitle(String, Docking, Font, Color)

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

NameDescription
System_CAPS_pubpropertyAlignment

Gets or sets the alignment of the title.

System_CAPS_pubpropertyBackColor

Gets or sets the background color of the title.

System_CAPS_pubpropertyBackGradientStyle

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

System_CAPS_pubpropertyBackHatchStyle

Gets or sets the hatching style for the title.

System_CAPS_pubpropertyBackImage

Gets or sets the background image of the title.

System_CAPS_pubpropertyBackImageAlignment

Gets or sets the alignment of the title background image.

System_CAPS_pubpropertyBackImageTransparentColor

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

System_CAPS_pubpropertyBackImageWrapMode

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

System_CAPS_pubpropertyBackSecondaryColor

Gets or sets the secondary color of the title background.

System_CAPS_pubpropertyBorderColor

Gets or sets the border color of the title.

System_CAPS_pubpropertyBorderDashStyle

Gets or sets the border style of the title.

System_CAPS_pubpropertyBorderWidth

Gets or sets the border width of the title.

System_CAPS_pubpropertyDockedToChartArea

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

System_CAPS_pubpropertyDocking

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

System_CAPS_pubpropertyDockingOffset

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

System_CAPS_pubpropertyFont

Gets or sets the font for the title.

System_CAPS_pubpropertyForeColor

Gets or sets the color of the title text.

System_CAPS_pubpropertyIsDockedInsideChartArea

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

System_CAPS_pubpropertyMapAreaAttributes

Gets or sets the map area attributes of the title.

System_CAPS_pubpropertyName

Gets or sets the unique name of a Title object.(Overrides ChartNamedElement.Name.)

System_CAPS_pubpropertyPosition

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

System_CAPS_pubpropertyPostBackValue

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

System_CAPS_pubpropertyShadowColor

Gets or sets the shadow color for the title.

System_CAPS_pubpropertyShadowOffset

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

System_CAPS_pubpropertyTag

Gets or sets an object associated with this chart element.(Inherited from ChartElement.)

System_CAPS_pubpropertyText

Gets or sets the text for the title.

System_CAPS_pubpropertyTextOrientation

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

System_CAPS_pubpropertyTextStyle

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

System_CAPS_pubpropertyToolTip

Gets or sets the tooltip for the title.

System_CAPS_pubpropertyUrl

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

System_CAPS_pubpropertyVisible

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

NameDescription
System_CAPS_pubmethodDispose()

Releases the resources used by the ChartElement.(Inherited from ChartElement.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the Title and optionally releases the managed resources.(Overrides ChartElement.Dispose(Boolean).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current ChartElement.(Inherited from ChartElement.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns a hash function for a particular type.(Inherited from ChartElement.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current Object.(Inherited from ChartElement.)

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
Available since 4.0

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

Return to top
Show:
© 2016 Microsoft