Title Title Title Title Class


表示整個圖表影像的標題。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


Title類別會封裝的標題的所有功能Chart控制項。The Title class encapsulates all the functionality of a title for the Chart control. 這個類別會使用公開Titles集合屬性的根Chart物件。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.

  • 使用預先定義TextStyle這類EmbedShadowUse a predefined TextStyle such as Embed or Shadow.

  • 使用影線、 漸層色彩和背景影像。Use hatching, gradient colors and background images.

  • 調整大小並放在圖表影像內的任何位置。Be sized and positioned anywhere within the chart image.


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

初始化 Title 類別的新執行個體。Initializes a new instance of the Title class.

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

使用指定的標題文字,初始化 Title 類別的新執行個體。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)

使用指定的標題文字和停駐值,初始化 Title 類別的新執行個體。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)

使用指定的標題文字、停駐值、字型和色彩,初始化 Title 類別的新執行個體。Initializes a new instance of the Title class with the specified title text, docking value, font and color.


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

取得或設定標題所要停駐之 ChartArea 的名稱。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

取得或設定旗標,這個旗標指定標題是否應停駐於 ChartArea 物件內部。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

取得或設定 Title 物件的唯一名稱。Gets or sets the unique name of a Title object.

Position Position Position Position

取得或設定 ElementPosition 物件,這個物件可用來取得或設定標題的位置。Gets or sets an ElementPosition object, which can be used to get or set the position of the title.

PostBackValue PostBackValue PostBackValue PostBackValue

取得或設定可在 Click 事件上處理的回傳值。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

取得或設定標題之超連結的目標 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.


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

釋放 ChartElement 使用的資源。Releases the resources used by the ChartElement.

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

釋放 Title 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。Releases the unmanaged resources used by the Title and optionally releases the managed resources.

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

判斷指定的 Object 是否等於目前的 ChartElementDetermines 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()

取得目前執行個體的 TypeGets the Type of the current instance.

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

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

傳回表示目前 Object 的字串。Returns a string that represents the current Object.

(Inherited from ChartElement)