FontShading Property

Returns a Shading object that refers to the shading formatting for the font.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public Shading Shading { get; }

Property Value

Type: Shading
Examples
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.");
See Also