SaveOptionsTextStyles Property

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

Namespace:  Aspose.Tasks.Saving
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 20.11
public List<TextStyle> TextStyles { get; set; }

Property Value

Type: ListTextStyle
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
    Color = Color.OrangeRed,
    FontStyle = FontStyle.Bold
style.FontStyle |= FontStyle.Italic;
style.ItemType = TextItemType.OverallocatedResources;

options.TextStyles = new List<TextStyle>
project.Save(OutDir + "CustomizeTextStyle_out.pdf", options);
See Also