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

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

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

设置或清除任务后续任务的任务路径功能突出显示。Sets or clears task successor highlighting for the task path feature.

语法Syntax

表达式HighlightSuccessors(设置)expression. HighlightSuccessors(Set)

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

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
设置Set可选OptionalVariantVariant要设置突出显示任务后续;以清除突出显示任务后续任务。True to set task successor highlighting; False to clear task successor highlighting.
设置Set可选Optional变量VARIANT
名称Name必需/可选Required/Optional数据类型Data type说明Description

返回值Return value

BooleanBoolean

注解Remarks

HighlightSuccessors方法对应于任务路径下拉列表的格式选项卡上的在功能区上的甘特条形图工具中的后续项目。The HighlightSuccessors method corresponds to the Successors item in the Task Path drop-down list, on the FORMAT tab, under GANTT CHART TOOLS on the ribbon.

示例Example

创建的项目任务 4 所在 3,任务的后续任务,然后在 VBE即时窗口中运行以下语句。PathSuccessor语句打印,则返回 TrueCreate a project where task 4 is a successor of task 3, and then run the following statements in the Immediate window of the VBE. The PathSuccessor statement prints True.

Application.SelectRow Row:=3, RowRelative:=False 
Application.HighlightSuccessors True
? ActiveProject.Tasks(4).PathSuccessor

另请参阅See also

概念Concepts

Application 对象Application Object

其他资源Other resources

Task.PathSuccessor 属性Task.PathSuccessor Property

© 2018 Microsoft