Поделиться через


ColorSchemeMapping.Background1 Property

Background 1 Theme Color Mapping.Represents the attribte in schema: w:bg1

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

Syntax

'Декларация
<SchemaAttrAttribute(, "bg1")> _
Public Property Background1 As EnumValue(Of ColorSchemeIndexValues)
    Get
    Set
'Применение
Dim instance As ColorSchemeMapping
Dim value As EnumValue(Of ColorSchemeIndexValues)

value = instance.Background1

instance.Background1 = value
[SchemaAttrAttribute(, "bg1")]
public EnumValue<ColorSchemeIndexValues> Background1 { 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 light1 theme color shall be used.

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

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

The bg1 attribute has a value of light2, specifying that uses of the theme color value bg1 shall be mapped to the theme color lt2.

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