Excel (的 AxisTitle 物件)
代表圖表座標軸標題。
註解
使用Axis物件的AxisTitle屬性可傳回AxisTitle物件。
AxisTitle物件不存在,除非座標軸的HasTitle屬性為True,否則無法使用。
範例
以下範例啟動內嵌圖表一,設定其數值座標軸標題文字,將其字型設為 10 點的 Bookman 字型,並將單字 millions 設為斜體。
Worksheets("sheet1").ChartObjects(1).Activate
With ActiveChart.Axes(xlValue)
.HasTitle = True
With .AxisTitle
.Caption = "Revenue (millions)"
.Font.Name = "bookman"
.Font.Size = 10
.Characters(10, 8).Font.Italic = True
End With
End With
方法
屬性
- 應用程式
- Caption
- Characters
- Creator
- Format
- 公式
- FormulaLocal
- FormulaR1C1
- FormulaR1C1Local
- Height
- HorizontalAlignment
- IncludeInLayout
- Left
- Name
- Orientation
- Parent
- 位置
- ReadingOrder
- Shadow
- Text
- Top
- VerticalAlignment
- Width
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。