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

Group2.Name 属性 (项目)Group2.Name Property (Project)

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

获取或设置组 2对象的名称。读/写,字符串Gets or sets the name of a Group2 object. Read/write String.

语法Syntax

表达式名称expression. Name

表达式_一个表达式,返回一个对象,组 2_expression An expression that returns a Group2 object.

示例Example

下面的示例显示即时窗口中的TaskGroups2集合中的组 2中的每个对象的名称。The following example displays the name of each Group2 object in the TaskGroups2 collection in the Immediate window.

Sub ListTaskGroups() 

 Dim groupIndex As Integer 

 Dim numTaskGroups As Integer 



 numTaskGroups = ActiveProject.TaskGroups2.Count 



 For groupIndex = 1 To numTaskGroups 

 Debug.Print ActiveProject.TaskGroups2(groupIndex).Name 

 Next groupIndex 

End Sub

另请参阅See also

概念Concepts

组 2 对象Group2 Object

© 2018 Microsoft