ColorSchemeMapping.Background1 属性

定义

背景 1 主题颜色映射

表示架构中的以下属性:w:bg1

[DocumentFormat.OpenXml.SchemaAttr(23, "bg1")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ColorSchemeIndexValues> Background1 { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ColorSchemeIndexValues> Background1 { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "bg1")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ColorSchemeIndexValues>? Background1 { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:bg1")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ColorSchemeIndexValues>? Background1 { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ColorSchemeIndexValues>? Background1 { get; set; }
member this.Background1 : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ColorSchemeIndexValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "bg1")>]
member this.Background1 : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ColorSchemeIndexValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:bg1")>]
member this.Background1 : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ColorSchemeIndexValues> with get, set
Public Property Background1 As EnumValue(Of ColorSchemeIndexValues)

属性值

返回 EnumValue<T>

属性

注解

使用此类时,ECMA 国际标准 ECMA-376 中的以下信息可能很有用。

指定文档主题部分的主题颜色,文档内容引用时,该主题颜色应用于代替此颜色。

如果省略此属性,则应 light1 使用主题颜色。

请考虑 WordprocessingML 文档,该文档应引用映射到文档主题 bg1 部分中定义的主题颜色的主题颜色 lt2 。 将在文档设置中使用以下 WordprocessingML 指定此要求:

<w:clrSchemeMapping w:bg1="light2" />  

属性 bg1 的值 light2为 ,指定主题颜色值的 bg1 用法应映射到主题颜色 lt2

此属性的可能值由 ST_ColorSchemeIndex 简单类型定义。

适用于