Compartir a través de


ColorsDefinition Class

Color Transform Definitions. It is the root element of DiagramColorsPart.When the object is serialized out as xml, its qualified name is dgm:colorsDef.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.Drawing.Diagrams.ColorsDefinition

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

Syntax

'Declaración
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(ColorTransformDescription))> _
<ChildElementInfoAttribute(GetType(ColorTransformCategories))> _
<ChildElementInfoAttribute(GetType(ColorTransformStyleLabel))> _
<ChildElementInfoAttribute(GetType(ColorDefinitionTitle))> _
Public Class ColorsDefinition _
    Inherits OpenXmlPartRootElement
'Uso
Dim instance As ColorsDefinition
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(ColorTransformDescription))]
[ChildElementInfoAttribute(typeof(ColorTransformCategories))]
[ChildElementInfoAttribute(typeof(ColorTransformStyleLabel))]
[ChildElementInfoAttribute(typeof(ColorDefinitionTitle))]
public class ColorsDefinition : OpenXmlPartRootElement

Remarks

The following table lists the possible child types:

  • ColorDefinitionTitle <dgm:title>

  • ColorTransformDescription <dgm:desc>

  • ColorTransformCategories <dgm:catLst>

  • ColorTransformStyleLabel <dgm:styleLbl>

  • ExtensionList <dgm:extLst>

[ISO/IEC 29500-1 1ª edición]

21.4.4.3 colorsDef (Color Transform Definitions)

This element is the root element for color transforms. Held within this element are all of the available color transforms themselves along with other elements and attributes associated with defining the general color transform properties and attributes.

[Example: Consider the following example of a colorsDef in DiagramML:

<dgm:colorsDef xmlns:dgm="https://schemas.openxmlformats.org/drawingml/2006/3/diagram" xmlns:a="https://schemas.openxmlformats.org/drawingml/2006/3/main" uniqueId="urn:microsoft.com/office/officeart/2005/8/colors/accent0_3" minVer="12.0">
<dgm:title lang="" val=""/>
<dgm:desc lang="" val=""/>
<dgm:catLst>
<dgm:cat type="mainScheme" pri="10300"/>
</dgm:catLst>
<dgm:styleLbl name="node0">
…
</dgm:styleLbl>
…
</dgm:colorsDef>

In this example we see a sampling of a colorsDef being defined with a number of styleLbl elements held within the colorsDef. end example]

Parent Elements

Root element of DrawingML Diagram Colors part

Child Elements

Subclause

catLst (Color Transform Category List)

§21.4.4.2

desc (Description)

§21.4.4.6

extLst (Extension List)

§21.4.2.13

styleLbl (Style Label)

§21.4.4.10

title (Title)

§21.4.4.11

Attributes

Description

minVer (Minimum Version)

The minimum product version that can support this color transform.

[Example: Consider the following example:

<colorsDef uniqueId="urn:colors/accent0_3" minVer="12.0">
…
</colorsDef>

In this example we see the minVer set to 12.0. end example]

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

uniqueId (Unique ID)

A unique id associated with the color transform definition.

[Example: Consider the following example:

<colorsDef uniqueId="urn:colors/accent0_3" minVer="12.0">
…
</colorsDef>

In this example we see the uniqueId set to urn:colors/accent0_3. end example]

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_ColorTransform) is located in §A.5.3. end note]

© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.

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

ColorsDefinition Members

DocumentFormat.OpenXml.Drawing.Diagrams Namespace