ColorSchemeMapping.Accent1 属性

定义

强调文字 1 主题颜色映射

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

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

属性值

返回 EnumValue<T>

属性

注解

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

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

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

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

<w:clrSchemeMapping w:accent1="light1" />  

属性 accent1 的值 light1为 ,指定主题颜色值的 accent1 用法应映射到主题颜色 lt1

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

适用于