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
Syntaxpublic Shading Shading { get; }
Public ReadOnly Property Shading As Shading
Get
public:
property Shading^ Shading {
Shading^ get ();
}
member Shading : Shading with get
Property Value
Type:
Shading
ExamplesShows 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