Compartilhar via


AnimateRotation Class

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

Inheritance Hierarchy

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

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

Syntax

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

Remarks

The following table lists the possible child types:

  • CommonBehavior <p:cBhvr>

[ISO/IEC 29500-1 1st Edition]

19.5.5 animRot (Animate Rotation)

This animation element is responsible for animating the rotation of an object. Rotation values set in the "by" , "to, and "from" attributes are specified in degrees measured to a 60,000th, i.e 1 degree is 60,000. Rotation values can be larger than 360°.

The sign of the rotation angle specifies the direction for rotation. A negative rotation specifies that the rotation should appear in the host to go counter-clockwise".

[Example: Consider trying to emphasize a shape by rotating it 360 degrees clockwise. The <animRot> element should be used as follows:

<p:animRot by="21600000">
  <p:cBhvr>
    <p:cTn id="6" dur="2000" fill="hold"/>
    <p:tgtEl>
      <p:spTgt spid="5"/>
    </p:tgtEl>
    <p:attrNameLst>
      <p:attrName>r</p:attrName>
    </p:attrNameLst>
  </p:cBhvr>
</p:animRot>

end example]

Parent Elements

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

Child Elements

Subclause

cBhvr (Common Behavior)

§19.5.22

Attributes

Description

by (By)

This attribute describes the relative offset value for the animation.

The possible values for this attribute are defined by the ST_Angle simple type (§20.1.10.3).

from (From)

This attribute describes the starting value for the animation.

The possible values for this attribute are defined by the ST_Angle simple type (§20.1.10.3).

to (To)

This attribute describes the ending value for the animation.

The possible values for this attribute are defined by the ST_Angle simple type (§20.1.10.3).

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

AnimateRotation Members

DocumentFormat.OpenXml.Presentation Namespace