共用方式為


FormatScheme Class

Format Scheme.When the object is serialized out as xml, its qualified name is a:fmtScheme.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.FormatScheme

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(EffectStyleList))> _
<ChildElementInfoAttribute(GetType(LineStyleList))> _
<ChildElementInfoAttribute(GetType(BackgroundFillStyleList))> _
<ChildElementInfoAttribute(GetType(FillStyleList))> _
Public Class FormatScheme _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As FormatScheme
[ChildElementInfoAttribute(typeof(EffectStyleList))]
[ChildElementInfoAttribute(typeof(LineStyleList))]
[ChildElementInfoAttribute(typeof(BackgroundFillStyleList))]
[ChildElementInfoAttribute(typeof(FillStyleList))]
public class FormatScheme : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • FillStyleList <a:fillStyleLst>

  • LineStyleList <a:lnStyleLst>

  • EffectStyleList <a:effectStyleLst>

  • BackgroundFillStyleList <a:bgFillStyleLst>

[ISO/IEC 29500-1 1st Edition]

20.1.4.1.14 fmtScheme (Format Scheme)

This element contains the background fill styles, effect styles, fill styles, and line styles which define the style matrix for a theme. The style matrix consists of subtle, moderate, and intense fills, lines, and effects. The background fills are not generally thought of to directly be associated with the matrix, but do play a role in the style of the overall document. Usually, a given object chooses a single line style, a single fill style, and a single effect style in order to define the overall final look of the object.

[Example: Consider the following example of the style matrix in use within DrawingML:

DocumentFormat.OpenXml.Drawing.FormatScheme-image0DocumentFormat.OpenXml.Drawing.FormatScheme-image0

In this example, we see a shape styled which utilizes different aspects from the above defined style matrix. end example]

Parent Elements

themeElements (§20.1.6.10); themeOverride (§20.1.6.12)

Child Elements

Subclause

bgFillStyleLst (Background Fill Style List)

§20.1.4.1.7

effectStyleLst (Effect Style List)

§20.1.4.1.12

fillStyleLst (Fill Style List)

§20.1.4.1.13

lnStyleLst (Line Style List)

§20.1.4.1.21

Attributes

Description

name (Name)

Defines the name for the format scheme. The name is simply a human readable string which identifies the format scheme in the user interface.

The possible values for this attribute are defined by the W3C XML Schema string datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_StyleMatrix) is located in §A.4.1. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

FormatScheme Members

DocumentFormat.OpenXml.Drawing Namespace