Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
116 lines (88 loc) · 4.19 KB

application-textstyles32ex-method-project.md

File metadata and controls

116 lines (88 loc) · 4.19 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Application.TextStyles32Ex Method (Project)
vbapj.chm2150
vbapj.chm2150
project-server
Project.Application.TextStyles32Ex
8e1ed2bb-dac4-42d7-616b-a67984dcffa4
06/08/2017

Application.TextStyles32Ex Method (Project)

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

Name Required/Optional Data Type Description
Item Optional Integer The type of text to change. Can be one of the following PjTextItem constants. See If the Gantt Chart is active.
Font Optional String The name of the font. The Font argument is ignored if the active view is the Network Diagram, and Item is not pjAll.
Size Optional Integer The size of the font in points. The Size argument is ignored if the active view is the Network Diagram, and Item is not pjAll.
Bold Optional Boolean True if the font is bold; otherwise, False.
Italic Optional Boolean True if the font is italic; otherwise, False.
Underline Optional Boolean True if the font is underlined; otherwise, False.
Color Optional Long The 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.
CellColor Optional Long The background color of the cell. Can be a hexadecimal value for the RGB color.
Pattern Optional Integer The background pattern of the cell. Can be one of the PjBackgroundPattern constants.

If the Gantt Chart is active

pjAll pjGanttMajorTimescale
pjNoncritical pjGanttMinorTimescale
pjCritical pjBarTextLeft
pjMilestone pjBarTextRight
pjSummary pjBarTextTop
pjProjectSummary pjBarTextBottom
pjMarked pjBarTextInside
pjTaskFilterHighlight pjGanttExternalTask
pjTaskRowColumnTitles

If the Task Usage view is active

pjAll pjTaskFilterHighlight
pjCritical pjTaskMajorTimescale
pjMarked pjTaskMinorTimescale
pjMilestone pjTaskRowColumnTitles
pjNoncritical pjTaskUsageAssignmentRow
pjProjectSummary pjTaskUsageExternalTask
pjSummary

If the Task Sheet is active

pjAll pjGanttMajorTimescale
pjNoncritical pjGanttMinorTimescale
pjCritical pjBarTextLeft
pjMilestone pjBarTextRight
pjSummary pjBarTextTop
pjProjectSummary pjBarTextBottom
pjMarked pjBarTextInside
pjTaskFilterHighlight pjGanttExternalTask
pjTaskRowColumnTitles
pjAll pjTaskFilterHighlight
pjCritical pjTaskMajorTimescale
pjMarked pjTaskMinorTimescale
pjMilestone pjTaskRowColumnTitles
pjNoncritical pjTaskUsageAssignmentRow
pjProjectSummary pjTaskUsageExternalTask
pjSummary
pjAll pjProjectSummary
pjCritical pjSummary
pjMarked pjTaskSheetExternalTask
pjMilestone pjTaskFilterHighlight
pjNoncritical pjTaskRowColumnTitles

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.