public void Shading()
{
//ExStart
//ExFor:Font.Shading
//ExSummary:Shows how to apply shading for a run of text.
DocumentBuilder builder = new DocumentBuilder();
Shading shd = builder.Font.Shading;
shd.Texture = TextureIndex.TextureDiagonalCross;
shd.BackgroundPatternColor = Color.Blue;
shd.ForegroundPatternColor = Color.BlueViolet;
builder.Font.Color = Color.White;
builder.Writeln("White text on a blue background with texture.");
//ExEnd
}