This documentation is archived and is not being maintained.

ByColor Class

By.When the object is serialized out as xml, its qualified name is p:by.

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

public class ByColor : OpenXmlCompositeElement

The following table lists the possible child types:

  • RgbColor <p:rgb>

  • HslColor <p:hsl>

[ISO/IEC 29500-1 1st Edition]

19.5.20 by (By)

This element describes the relative offset value for the color animation.

[Example: Consider a shape with a lightening emphasis animation applied to it. The <by> element should be used as follows:

<p:animClr clrSpc="hsl">
    <p:cTn id="8" dur="500" fill="hold"/>
      <p:spTgt spid="4"/>
    <p:hsl h="0" s="0" l="0"/>

end example]

Parent Elements

animClr (§19.5.2)

Child Elements


hsl (HSL)


rgb (RGB)


[Note: The W3C XML Schema definition of this element’s content model (CT_TLByAnimateColorTransform) is located in §A.3. 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.