Retrieves the title of a chart (displayed on top of a chart).

object.GetTitle 

Arguments

object
Required. A Chart object.

Return Value

The GetTitle method returns a string value that contains the title of a chart.

VBScript Sample Code

The following VBScript code illustrates use of the GetTitle method in an ASP page.

chart.SetDataFromQuery

'We want a title for our chart (add one if it is not yet available) 
title= chart.GetTitle 

If title = "" Then
  chart.SetTitle "My Chart"
End If

chart.ExportAsResponse

See Also

SetTitle Method | GetSubTitle Method | GetWidth Method | GetHeight Method | GetFrameRate Method

Applies To: Chart Object