Click or drag to resize

BackgroundPattern Enumeration

Specifies the background pattern.

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public enum BackgroundPattern
Members
  Member nameValueDescription
DarkDiagonalLeft7 Indicates Dark diagonal left background pattern.
DarkDiagonalRight8 Indicates Dark diagonal right background pattern.
DarkDither13 Indicates Dark dither background pattern.
DarkFill4 Indicates Dark fill background pattern.
DiagonalLeft5 Indicates Diagonal left background pattern.
DiagonalRight6 Indicates Diagonal right background pattern.
Hollow0 Indicates Hollow background pattern.
LightDither11 Indicates Light dither background pattern.
LightFill2 Indicates Light fill background pattern.
MediumDither12 Indicates Medium dither background pattern.
MediumFill3 Indicates Medium fill background pattern.
MediumVerticalStripe10 Indicates Medium vertical stripe background pattern.
SolidFill1 Indicates Solid fill background pattern.
ThinVerticalStripe9 Indicates Thin vertical stripe background pattern.
Examples
Shows how to customize 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();
style.Color = Color.OrangeRed;
style.FontStyle = FontStyle.Bold;
style.FontStyle |= FontStyle.Italic;
style.ItemType = TextItemType.OverallocatedResources;
style.BackgroundColor = Color.Aqua;
style.BackgroundPattern = BackgroundPattern.DarkDither;
style.FontFamily = FontFamily.GenericMonospace;
style.SizeInPoints = 10;

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