Partager via


ContourColor Class

Contour Color.When the object is serialized out as xml, its qualified name is a:contourClr.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ColorType
        DocumentFormat.OpenXml.Drawing.ContourColor

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

Syntax

'Declaration
Public Class ContourColor _
    Inherits ColorType
'Usage
Dim instance As ContourColor
public class ContourColor : ColorType

Remarks

The following table lists the possible child types:

  • RgbColorModelPercentage <a:scrgbClr>

  • RgbColorModelHex <a:srgbClr>

  • HslColor <a:hslClr>

  • SystemColor <a:sysClr>

  • SchemeColor <a:schemeClr>

  • PresetColor <a:prstClr>

[ISO/IEC 29500-1 1st Edition]

20.1.5.6 contourClr (Contour Color)

This element defines the color for the contour on a shape. The contour of a shape is a solid filled line which surrounds the outer edges of the shape.

[Example: Consider the following example of a contour defined on a shape which includes a contourClr. Lighting characteristics applied to the shape are ignored when it comes to the contour on the shape.

<a:sp3d contourW="101600" prstMaterial="plastic">
<a:bevelT w="254000" h="254000"/>
<a:bevelB w="254000" h="254000"/>
<a:contourClr>
<a:schemeClr val="bg1"/>
</a:contourClr>
</a:sp3d>

In this example, we see a contour defined on a shape with a top and bottom bevel defined. In the image below, the contour is the white ring around the shape.

DocumentFormat.OpenXml.Drawing.ContourColor-image0

end example]

Parent Elements

sp3d (§21.4.5.6); sp3d (§20.1.5.12)

Child Elements

Subclause

hslClr (Hue, Saturation, Luminance Color Model)

§20.1.2.3.13

prstClr (Preset Color)

§20.1.2.3.22

schemeClr (Scheme Color)

§20.1.2.3.29

scrgbClr (RGB Color Model - Percentage Variant)

§20.1.2.3.30

srgbClr (RGB Color Model - Hex Variant)

§20.1.2.3.32

sysClr (System Color)

§20.1.2.3.33

[Note: The W3C XML Schema definition of this element’s content model (CT_Color) 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

ContourColor Members

DocumentFormat.OpenXml.Drawing Namespace