Freigeben über


ColorSchemeMapping.Background2-Eigenschaft

Background 2 Theme Color Mapping.Represents the attribte in schema: w:bg2

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

Syntax

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

value = instance.Background2

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

Eigenschaftswert

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

Hinweise

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 light2 theme color shall be used.

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

<w:clrSchemeMapping w:bg2="dark1" />

The bg2 attribute has a value of dark1, specifying that uses of the theme color value bg2 shall be mapped to the theme color dk1.

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

Siehe auch

Referenz

ColorSchemeMapping Klasse

ColorSchemeMapping-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace