SaveOptions.TextStyles property

Gets or sets the list of the instances of the TextStyle class that appear in project view.

public List<TextStyle> TextStyles { get; set; }


Shows how to use save options’ text styles which are used to style different text items in a project.

var project = new Project(DataDir + "CreateProject2.mpp");
SaveOptions options = new PdfSaveOptions
    PresentationFormat = PresentationFormat.ResourceSheet

var style = new TextStyle(FontStyles.Bold | FontStyles.Italic)
    Color = Color.OrangeRed

style.ItemType = TextItemType.OverallocatedResources;

options.TextStyles = new List<TextStyle>

project.Save(OutDir + "CustomizeTextStyle_out.pdf", options);

See Also