ColorSchemeMapping.Accent2 Property

Accent 2 Theme Color Mapping.Represents the attribte in schema: w:accent2

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<SchemaAttrAttribute(, "accent2")> _
Public Property Accent2 As EnumValue(Of ColorSchemeIndexValues)
    Get
    Set
'Usage
Dim instance As ColorSchemeMapping
Dim value As EnumValue(Of ColorSchemeIndexValues)

value = instance.Accent2

instance.Accent2 = value
[SchemaAttrAttribute(, "accent2")]
public EnumValue<ColorSchemeIndexValues> Accent2 { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<ColorSchemeIndexValues>
Returns EnumValue<T>.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the theme color in the document's theme part which shall be used in place of this color when it is referenced by document content.

If this attribute is omitted, then the accent2 theme color shall be used.

Consider a WordprocessingML document that shall have the references to the theme color accent2 mapped to the theme color hlink as defined in the document's theme part. This requirement would be specified using the following WordprocessingML in the document settings:

<w:clrSchemeMapping w:accent2="hyperlink" />

The accent2 attribute has a value of hyperlink, specifying that uses of the theme color value accent2 shall be mapped to the theme color hlink.

The possible values for this attribute are defined by the ST_ColorSchemeIndex simple type.

See Also

Reference

ColorSchemeMapping Class

ColorSchemeMapping Members

DocumentFormat.OpenXml.Wordprocessing Namespace