Application.DetailStylesFormat Method
Project Developer Reference |
Sets the format of timescale data fields in a usage view.
Syntax
expression.DetailStylesFormat(Item, Font, Size, Bold, Italic, Underline, Color, CellColor, Pattern, ShowInMenu)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Item | Optional | Long | The timescale data field to format.If the active view is the Resource Usage view, can be one of the PjTimescaledData constants. If the active view is the Task Usage view, can be one of the PjTimescaledData constants. |
Font | Optional | String | The name of the font. |
Size | Optional | Integer | The size of the font in points. |
Bold | Optional | Boolean | True if the font is bold. |
Italic | Optional | Boolean | True if the font is italic. |
Underline | Optional | Boolean | True if the font is underlined. |
Color | Optional | Long | The color of the font. Can be one of the PjColor constants. |
CellColor | Optional | Long | The color of the cell background. Can be one of the PjColor constants. |
Pattern | Optional | Long | The pattern for nonworking times. Can be one of the PjFillPattern constants. |
ShowInMenu | Optional | Boolean | True if the field specified with Item appears in the shortcut menu. The default value is False. |
Return Value
Boolean
Remarks
Using the DetailStylesFormat method without specifying any arguments displays the Detail Styles dialog box with the Usage Details tab selected.
Example
The following example makes overallocations stand out from other information in a usage view.
Visual Basic for Applications |
---|
|
See Also