Share via


DetailStylesAdd Method

Adds another timescale data field to a usage view.

Syntax

expression**.DetailStylesAdd(Item, Position)**

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

Item    Optional Long. The timescale data field to add. The default value is pjWork.

PjTimescaledData

pjActualCost pjBaseline5Work
pjActualOvertimeWork pjBaseline6Work
pjActualWork pjBaseline7Work
pjACWP pjBaseline8Work
pjAllAssignmentRows pjBaseline9Work
pjAllResourceRows pjBaseline10Work
pjBaselineCost pjBCWP
pjBaseline1Cost pjBCWS
pjBaseline2Cost pjCost
pjBaseline3Cost pjCumulativeCost
pjBaseline4Cost pjCumulativeWork
pjBaseline5Cost pjCV
pjBaseline6Cost pjOverallocation
pjBaseline7Cost pjOvertimeWork
pjBaseline8Cost pjPeakUnits
pjBaseline9Cost pjPercentAllocation
pjBaseline10Cost pjRegularWork
pjBaselineWork pjRemainingAvailability
pjBaseline1Work pjSV
pjBaseline2Work pjUnitAvailability
pjBaseline3Work pjWork
pjBaseline4Work pjWorkAvailability

PjTimescaledData

pjActualCost pjBaseline7Work
pjActualFixedCost pjBaseline8Work
pjActualOvertimeWork pjBaseline9Work
pjActualWork pjBaseline10Work
pjACWP pjBCWP
pjAllAssignmentRows pjBCWS
pjAllTaskRows pjCPI
pjBaselineCost pjCost
pjBaseline1Cost pjCumPctComplete
pjBaseline2Cost pjCumulativeCost
pjBaseline3Cost pjCumulativeWork
pjBaseline4Cost pjCV
pjBaseline5Cost pjCVP
pjBaseline6Cost pjFixedCost
pjBaseline7Cost pjOverallocation
pjBaseline8Cost pjOvertimeWork
pjBaseline9Cost pjPctComplete
pjBaseline10Cost pjPeakUnits
pjBaselineWork pjPercentAllocation
pjBaseline1Work pjRegularWork
pjBaseline2Work pjSPI
pjBaseline3Work pjSV
pjBaseline4Work pjSVP
pjBaseline5Work pjWork
pjBaseline6Work  

Position    Optional Integer. The position to add the field, relative to other fields. If Position is *n   * + 2 or greater, where n is the number of fields displayed, the field is added at n +1. The default value is n + 1.

Example

The following example makes overallocations stand out from other information in a usage view.

Sub HighlightOverallocations()

    DetailStylesAdd pjOverallocation
    DetailStylesFormat Item:=pjOverallocation, Font:="Arial", Size:=12, _
        Bold:=True, Color:=pjRed, CellColor:=pjBlack, Pattern:=pjSolidFill

End Sub

Applies to | Application Object

See Also | DetailStylesFormat Method | DetailStylesProperties Method | DetailStylesRemove Method | DetailStylesRemoveAll Method | DetailStylesToggleItem Method | TimeScaleData Method