FromColor Class

From.When the object is serialized out as xml, its qualified name is p:from.

Inheritance Hierarchy


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


Public Class FromColor _
    Inherits Color3Type
Dim instance As FromColor
public class FromColor : Color3Type


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.43 from (From)

This element is used to specify the starting color of the target element.

[Example: Consider a shape with an animation fill change from one accent color to another. The <from> element should be used as follows:

<p:animClr clrSpc="rgb" dir="cw">
    <p:cTn id="6" dur="2000" fill="hold"/>
    <p:tgtEl> … </p:tgtEl>
    <a:schemeClr val="accent3"/>
    <a:schemeClr val="accent2"/>

end example]

Parent Elements

animClr (§19.5.2)

Child Elements


hslClr (Hue, Saturation, Luminance Color Model)


prstClr (Preset Color)


schemeClr (Scheme Color)


scrgbClr (RGB Color Model - Percentage Variant)


srgbClr (RGB Color Model - Hex Variant)


sysClr (System Color)


[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


FromColor Members

DocumentFormat.OpenXml.Presentation Namespace