Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.TextStyles32Ex Method (Project)

office 365 dev account|Last Updated: 10/19/2017
|
2 Contributors

Sets the text styles for tasks and resources in the active view, where colors can be hexadecimal RGB values.

Syntax

expression. TextStyles32Ex (Item, Font, Size, Bold, Italic, Underline, Color, CellColor, Pattern)

expression An expression that returns an Application object.

Parameters

NameRequired/OptionalData TypeDescription
ItemOptionalIntegerThe type of text to change. Can be one of the following PjTextItem constants. See If the Gantt Chart is active.
FontOptionalStringThe name of the font. The Font argument is ignored if the active view is the Network Diagram, and Item is not pjAll.
SizeOptionalIntegerThe size of the font in points. The Size argument is ignored if the active view is the Network Diagram, and Item is not pjAll.
BoldOptionalBooleanTrue if the font is bold; otherwise, False.
ItalicOptionalBooleanTrue if the font is italic; otherwise, False.
UnderlineOptionalBooleanTrue if the font is underlined; otherwise, False.
ColorOptionalLongThe color of the font. Can be a hexadecimal value for the RGB color, where red is the last byte. For example, the value &;HFF0000 is blue and &;H00FFFF is yellow.
CellColorOptionalLongThe background color of the cell. Can be a hexadecimal value for the RGB color.
PatternOptionalIntegerThe background pattern of the cell. Can be one of the PjBackgroundPattern constants.


If the Gantt Chart is active

pjAllpjGanttMajorTimescale
pjNoncriticalpjGanttMinorTimescale
pjCriticalpjBarTextLeft
pjMilestonepjBarTextRight
pjSummarypjBarTextTop
pjProjectSummarypjBarTextBottom
pjMarkedpjBarTextInside
pjTaskFilterHighlightpjGanttExternalTask
pjTaskRowColumnTitles


If the Task Usage view is active

pjAllpjTaskFilterHighlight
pjCriticalpjTaskMajorTimescale
pjMarkedpjTaskMinorTimescale
pjMilestonepjTaskRowColumnTitles
pjNoncriticalpjTaskUsageAssignmentRow
pjProjectSummarypjTaskUsageExternalTask
pjSummary


If the Task Sheet is active

pjAllpjGanttMajorTimescale
pjNoncriticalpjGanttMinorTimescale
pjCriticalpjBarTextLeft
pjMilestonepjBarTextRight
pjSummarypjBarTextTop
pjProjectSummarypjBarTextBottom
pjMarkedpjBarTextInside
pjTaskFilterHighlightpjGanttExternalTask
pjTaskRowColumnTitles
pjAllpjTaskFilterHighlight
pjCriticalpjTaskMajorTimescale
pjMarkedpjTaskMinorTimescale
pjMilestonepjTaskRowColumnTitles
pjNoncriticalpjTaskUsageAssignmentRow
pjProjectSummarypjTaskUsageExternalTask
pjSummary
pjAllpjProjectSummary
pjCriticalpjSummary
pjMarkedpjTaskSheetExternalTask
pjMilestonepjTaskFilterHighlight
pjNoncriticalpjTaskRowColumnTitles


Return value

Boolean

Remarks

Using the TextStyles32Ex method without specifying any arguments displays the Text Styles dialog box.

Note

If you use any of the PjColor enumeration constants for the Color or CellColor parameters, the color will be nearly black. For example, the value of pjGreen is 9, which in the TextStyles32Ex method is a very dark red. To use only the sixteen colors available with PjColor constants, use the TextStylesEx method.

© 2018 Microsoft