AnimateScale Class

Animate Scale.When the object is serialized out as xml, its qualified name is p:animScale.

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(ByPosition))> _
<ChildElementInfoAttribute(GetType(FromPosition))> _
<ChildElementInfoAttribute(GetType(ToPosition))> _
<ChildElementInfoAttribute(GetType(CommonBehavior))> _
Public Class AnimateScale _
    Inherits OpenXmlCompositeElement
Dim instance As AnimateScale
public class AnimateScale : OpenXmlCompositeElement


The following table lists the possible child types:

  • CommonBehavior <p:cBhvr>

  • ByPosition <p:by>

  • FromPosition <p:from>

  • ToPosition <p:to>

[ISO/IEC 29500-1 1st Edition]

19.5.6 animScale (Animate Scale)

This animation element is responsible for animating the scale of an object. When animating the scale, the element shall scale around the reference point of the element and the positioning system used should be consistent with the one used for motion paths. When animating the width and height of an element, all of the width/height animation values are calculated first then the scale animations are applied on top of that. So for example, an animation from 0 to 100 of the width with a concurrent scale from 100% to 200% would result in the element appearing to scale from 0 to 200.

[Example: Consider trying to emphasize a shape by scaling it larger by 150%. The <animScale> element should be used as follows:

      <p:cTn id="6" dur="2000" fill="hold"/>
        <p:spTgt spid="5"/>
    <p:by x="150000" y="150000"/>

end example]

Parent Elements

childTnLst (§19.5.25); subTnLst (§19.5.78); tnLst (§19.5.87)

Child Elements


by (By)


cBhvr (Common Behavior)


from (From)


to (To)




zoomContents (Zoom Content)

This attribute specifies whether to zoom the contents of an object when doing a scaling animation.

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_TLAnimateScaleBehavior) 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


AnimateScale Members

DocumentFormat.OpenXml.Presentation Namespace