MaximumScale 属性(Word)Axis.MaximumScale property (Word)

返回或设置数值轴上的最大值。Returns or sets the maximum value on the value axis. 读/写DoubleRead/write Double.

语法Syntax

expressionexpression. MaximumScale

_表达式_一个代表**Axis** 对象的变量。expression A variable that represents an Axis object.

备注Remarks

设置此属性将 MaximumScaleIsAuto 属性设置为 FalseSetting this property sets the MaximumScaleIsAuto property to False.

示例Example

以下示例为活动文档中第一个图表的数值轴设置最小和最大值。The following example sets the minimum and maximum values for the value axis of the first chart in the active document.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.Axes(xlValue) 
 .MinimumScale = 10 
 .MaximumScale = 120 
 End With 
 End If 
End With

另请参阅See also

Axis 对象Axis Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.