SaveOptions.TextStyles
Contents
[
Hide
]SaveOptions.TextStyles property
Gets or sets the list of text styles that applied during rendering of a project view.
public List<TextStyle> TextStyles { get; set; }
Remarks
These styles override styles defined in GanttCharView.TextStyles.
Examples
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>
{
style
};
project.Save(OutDir + "CustomizeTextStyle_out.pdf", options);
See Also
- class TextStyle
- class SaveOptions
- namespace Aspose.Tasks.Saving
- assembly Aspose.Tasks