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
- Formula
- FormulaLocal
- FormulaR1C1
- FormulaR1C1Local
- Height
- HorizontalAlignment
- IncludeInLayout
- Left
- Name
- Orientation
- Parent
- Position
- ReadingOrder
- Shadow
- Text
- Top
- VerticalAlignment
- Width
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。