Interface IShading
Assembly: IronPPT.dll
Syntax
public interface IShading
Filling a paragraph or text region with a background color or pattern runs through IShading. It is the contract that holds the foreground color, the fill color, and the pattern that blends them, so a developer can shade a block of text the way a highlight or banded background would. Reach for it when a slide element needs a colored or patterned backdrop rather than a flat single color, and lean on the theme members when the shading should track the presentation's color scheme.
A developer reads or assigns the shading on the element that supports it rather than building a freestanding object. The concrete implementor in IronPPT is Shading, and its color members are typed as IColor, the same color contract the rest of the API uses, so a shading color is built and reused exactly like any other color.
The members split into direct colors, theme colors, and the pattern. The direct pair is Color (the pattern foreground) and Fill (the background behind it), both IColor. The theme set lets shading follow the presentation palette: ThemeColor and ThemeFill pick scheme colors, while ThemeFillShade, ThemeFillTint, and ThemeTint adjust them lighter or darker (ThemeFillShade is an IColor; ThemeTint and ThemeFillTint are string adjustments). ShadingPattern is a nullable ShadingPatternValues that selects the pattern blending the two colors; leaving it null gives a solid fill.
IShading shading = new Shading();
shading.Fill = new Color("#FFF2CC");
shading.ShadingPattern = ShadingPatternValues.Solid;
The paragraph style example styles a paragraph block, the add text how-to covers placing the text a shading sits behind, and the add paragraph example shows building the block that carries it.
Properties
Color
Declaration
IColor Color { get; set; }
Property Value
Fill
Declaration
IColor Fill { get; set; }
Property Value
ShadingPattern
Declaration
Nullable<ShadingPatternValues> ShadingPattern { get; set; }
Property Value
ThemeColor
Declaration
IColor ThemeColor { get; set; }
Property Value
ThemeFill
Declaration
IColor ThemeFill { get; set; }
Property Value
ThemeFillShade
Declaration
IColor ThemeFillShade { get; set; }
Property Value
ThemeFillTint
Declaration
string ThemeFillTint { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ThemeTint
Declaration
string ThemeTint { get; set; }
Property Value
| Type |
Description |
| System.String |
|