Table of contents
TOC
折叠目录
展开目录

Application.ZoomCalendar 方法 (项目)Application.ZoomCalendar Method (Project)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

放大或缩小“日历”视图。Zooms in on or out from the Calendar.

语法Syntax

表达式ZoomCalendar(* * NumWeeks,* *起始日期,* 结束日期)expression. **ZoomCalendar( ** NumWeeks, ** StartDate, ** EndDate* )

表达式_一个表示应用程序对象的变量。_expression A variable that represents an Application object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
NumWeeksNumWeeks可选OptionalLongLong要显示的周数。如果指定了开始日期和结束日期,则 NumWeeks 将被忽略。The number of weeks to display. If StartDate and EndDate are specified, NumWeeks is ignored.
开始日期StartDate可选OptionalVariantVariant要显示的第一个日期。The first date to display.
结束日期EndDate可选OptionalVariantVariant要显示的最后一个日期。The last date to display.

返回值Return Value

BooleanBoolean

注解Remarks

使用ZoomCalendar方法,而不指定任何参数将显示显示比例对话框。Using the ZoomCalendar method without specifying any arguments displays the Zoom dialog box.

示例Example

下面的示例将在“日历”(Calendar) 视图的活动窗格中显示多个周,共有四行。The following example displays four rows of weeks within the active pane of the Calendar view.

Sub FourWeekCalendar() 
 ViewApply Name:="Calendar" 
 ZoomCalendar NumWeeks:=4 
End Sub
© 2018 Microsoft