TimescaleNonWorking Method

Sets the format of nonworking times.

Syntax

expression**.TimescaleNonWorking(Draw, Calendar, Color, Pattern)**

*expression   *     Optional. An expression that returns an Application object.

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 following PjColor constants:

pjColorAutomatic pjNavy
pjAqua pjOlive
pjBlack pjPurple
pjBlue pjRed
pjFuchsia pjSilver
pjGray pjTeal
pjGreen pjYellow
pjLime pjWhite
pjMaroon  

Pattern    Optional Long. The pattern for nonworking times. Can be one of the following PjFillPattern constants:

pjDarkFillPattern pjLineCrossPattern
pjDiagonalCrossPattern pjLineHorizontalPattern
pjDiagonalLeftPattern pjLineVerticalPattern
pjDiagonalRightPattern pjMediumFillPattern
pjHollowPattern pjSolidFillPattern
pjLightFillPattern  

Remarks

Using the TimescaleNonWorking method without specifying any arguments displays the Timescale dialog box with the Nonworking Time tab selected.

Applies to | Application Object

See Also | Timescale Method | TimescaleEdit Method