ColorType Class

Defines the ColorType class.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.ColorType
        DocumentFormat.OpenXml.Presentation.ColorValue
        DocumentFormat.OpenXml.Presentation.PenColor

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

Syntax

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

Remarks

The following table lists the possible child types:DocumentFormat.OpenXml.Drawing.RgbColorModelPercentage <a:scrgbClr>DocumentFormat.OpenXml.Drawing.RgbColorModelHex <a:srgbClr>DocumentFormat.OpenXml.Drawing.HslColor <a:hslClr>DocumentFormat.OpenXml.Drawing.SystemColor <a:sysClr>DocumentFormat.OpenXml.Drawing.SchemeColor <a:schemeClr>DocumentFormat.OpenXml.Drawing.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.Presentation Namespace