ForegroundPatternThemeColor
Shading.ForegroundPatternThemeColor property
获取或设置与此关联的已应用配色方案中的前景图案主题颜色Shading
对象.
public ThemeColor ForegroundPatternThemeColor { get; set; }
例子
演示如何设置着色纹理的前景色和背景色。
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shading shading = doc.FirstSection.Body.FirstParagraph.ParagraphFormat.Shading;
shading.Texture = TextureIndex.Texture12Pt5Percent;
shading.ForegroundPatternThemeColor = ThemeColor.Dark1;
shading.BackgroundPatternThemeColor = ThemeColor.Dark2;
shading.ForegroundTintAndShade = 0.5;
shading.BackgroundTintAndShade = -0.2;
builder.Font.Border.Color = Color.Green;
builder.Font.Border.LineWidth = 2.5d;
builder.Font.Border.LineStyle = LineStyle.DashDotStroker;
builder.Writeln("Foreground and background pattern colors for shading texture.");
doc.Save(ArtifactsDir + "Font.ForegroundAndBackground.docx");
也可以看看
- enum ThemeColor
- class Shading
- 命名空间 Aspose.Words
- 部件 Aspose.Words