Enum YearLabelDisplay

YearLabelDisplay enumeration

Specifies how the year label displays.

public enum YearLabelDisplay

Values

NameValueDescription
Y0Sets the Years list in MS Project as mo.
Yr1Sets the Years list in MS Project as mon.
Year2Sets the Years list in MS Project as month.

Examples

Shows how to set the year label of project’s display options (case 1).

var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");

// ...
// set how the year label is displayed
project.DisplayOptions.YearLabel = YearLabelDisplay.Y;

// ...

See Also