Partager via


ByColor Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Presentation.ByColor

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(HslColor))> _
<ChildElementInfoAttribute(GetType(RgbColor))> _
Public Class ByColor _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As ByColor
[ChildElementInfoAttribute(typeof(HslColor))]
[ChildElementInfoAttribute(typeof(RgbColor))]
public class ByColor : OpenXmlCompositeElement

Remarks

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:cBhvr>
    <p:cTn id="8" dur="500" fill="hold"/>
    <p:tgtEl>
      <p:spTgt spid="4"/>
    </p:tgtEl>
    <p:attrNameLst>
      <p:attrName>stroke.color</p:attrName>
    </p:attrNameLst>
  </p:cBhvr>
  <p:by>
    <p:hsl h="0" s="0" l="0"/>
  </p:by>
</p:animClr>

end example]

Parent Elements

animClr (§19.5.2)

Child Elements

Subclause

hsl (HSL)

§19.5.46

rgb (RGB)

§19.5.63

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

ByColor Members

DocumentFormat.OpenXml.Presentation Namespace