Enum BackgroundPattern

BackgroundPattern enumeration

Specifies the background pattern.

public enum BackgroundPattern

Values

NameValueDescription
DarkDiagonalLeft7Indicates Dark diagonal left background pattern.
DarkDiagonalRight8Indicates Dark diagonal right background pattern.
DarkDither13Indicates Dark dither background pattern.
DarkFill4Indicates Dark fill background pattern.
DiagonalLeft5Indicates Diagonal left background pattern.
DiagonalRight6Indicates Diagonal right background pattern.
Hollow0Indicates Hollow background pattern.
LightDither11Indicates Light dither background pattern.
LightFill2Indicates Light fill background pattern.
MediumDither12Indicates Medium dither background pattern.
MediumFill3Indicates Medium fill background pattern.
MediumVerticalStripe10Indicates Medium vertical stripe background pattern.
SolidFill1Indicates Solid fill background pattern.
ThinVerticalStripe9Indicates 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.Font = new FontDescriptor(FontFamily.GenericMonospace.Name, 10F, FontStyles.Bold | FontStyles.Italic);
style.ItemType = TextItemType.OverallocatedResources;
style.BackgroundColor = Color.Aqua;
style.BackgroundPattern = BackgroundPattern.DarkDither;

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

See Also