Application.TimescaleNonWorking Method
Project Developer Reference |
Sets the format of nonworking times.
Syntax
expression.TimescaleNonWorking(Draw, Calendar, Color, Pattern)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Draw | Optional | Long | How nonworking times are denoted in relation to Gantt bars. Can be one of the following PjNonWorkingPlacement constants: pjBehind, pjInFront, or pjDoNotDraw. |
Calendar | Optional | String | The name of the calendar to format. |
Color | Optional | Long | The color of nonworking times. Can be one of the PjColor constants. |
Pattern | Optional | Long | The pattern for nonworking times. Can be one of the PjFillPattern constants. |
Return Value
Boolean
Remarks
Using the TimescaleNonWorking method without specifying any arguments displays the Timescale dialog box with the Nonworking Time tab selected.
Example
The following example draws nonworking time behind the task bars in red.
Visual Basic for Applications |
---|
|
See Also