ToColor Class

To.When the object is serialized out as xml, its qualified name is p:to.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.Color3Type
        DocumentFormat.OpenXml.Presentation.ToColor

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

Syntax

'Declaration
Public Class ToColor _
    Inherits Color3Type
'Usage
Dim instance As ToColor
public class ToColor : Color3Type

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>

[ISO/IEC 29500-1 1st Edition]

19.5.90 to (To)

This element specifies the resulting color for the animation color change.

[Example: Consider emphasize a shape by changing its fill color from blue to red. The <to> element should be used as follows:

<p:childTnLst>
  <p:animClr clrSpc="rgsb">
    <p:cBhvr> … </p:cBhvr>
    <p:to>
      <a:schemeClr val="accent2"/>
    </p:to>
  </p:animClr>
</p:childTnLst>

end example]

Parent Elements

animClr (§19.5.2)

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

ToColor Members

DocumentFormat.OpenXml.Presentation Namespace