AxisTitle 物件 (Word)
代表圖表座標軸標題。
註解
使用 AxisTitle 屬性可傳回 AxisTitle 物件。
AxisTitle 物件才存在,並不能將座標軸的 HasTitle 屬性設定為 True 。
範例
下列範例會設定標題,並將字型設為 Bookman 10 點,然後設定單字 "millions" 的格式為斜體,做為使用中文件內第一張圖表之數值座標軸的座標軸標題。
With ActiveDocument.InlineShapes(1)
If .HasChart Then
With .Chart.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
End If
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 支援與意見反應。