Complement class

Office 2013 and later

Complement. When the object is serialized out as xml, its qualified name is a:comp.

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

public class Complement : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

comp (Complement)

This element specifies that the color rendered should be the complement of its input color with the complement being defined as such. Two colors are called complementary if, when mixed they produce a shade of grey. For instance, the complement of red which is (255, 0, 0) is cyan which is (0, 255, 255).

Primary colors and secondary colors are typically paired in this way:

  • red and cyan (where cyan is the mixture of green and blue)

  • green and magenta (where magenta is the mixture of red and blue)

  • blue and yellow (where yellow is the mixture of red and green)


The following represents the complement of red:

  <a:srgbClr val="FF0000">

end example]

Parent Elements

hslClr (§; prstClr (§; schemeClr (§; scrgbClr (§; srgbClr (§; sysClr (§

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

© ISO/IEC29500: 2008.

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