Partager via


ColorType Class

Defines the ColorType class.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(RgbColorModelPercentage))> _
<ChildElementInfoAttribute(GetType(HslColor))> _
<ChildElementInfoAttribute(GetType(SystemColor))> _
<ChildElementInfoAttribute(GetType(RgbColorModelHex))> _
<ChildElementInfoAttribute(GetType(SchemeColor))> _
<ChildElementInfoAttribute(GetType(PresetColor))> _
Public MustInherit Class ColorType _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As ColorType
[ChildElementInfoAttribute(typeof(RgbColorModelPercentage))]
[ChildElementInfoAttribute(typeof(HslColor))]
[ChildElementInfoAttribute(typeof(SystemColor))]
[ChildElementInfoAttribute(typeof(RgbColorModelHex))]
[ChildElementInfoAttribute(typeof(SchemeColor))]
[ChildElementInfoAttribute(typeof(PresetColor))]
public abstract class ColorType : OpenXmlCompositeElement

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>

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

ColorType Members

DocumentFormat.OpenXml.Drawing Namespace

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.ColorType
        DocumentFormat.OpenXml.Drawing.BackgroundColor
        DocumentFormat.OpenXml.Drawing.BulletColor
        DocumentFormat.OpenXml.Drawing.ColorFrom
        DocumentFormat.OpenXml.Drawing.ColorTo
        DocumentFormat.OpenXml.Drawing.ContourColor
        DocumentFormat.OpenXml.Drawing.ExtrusionColor
        DocumentFormat.OpenXml.Drawing.ForegroundColor
        DocumentFormat.OpenXml.Drawing.Highlight