CommonBehavior Class

Defines the CommonBehavior Class.When the object is serialized out as xml, its qualified name is p:cBhvr.

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

[ChildElementInfoAttribute(typeof(CommonTimeNode))]
[ChildElementInfoAttribute(typeof(TargetElement))]
[ChildElementInfoAttribute(typeof(AttributeNameList))]
public class CommonBehavior : OpenXmlCompositeElement

The following table lists the possible child types:

  • CommonTimeNode <p:cTn>

  • TargetElement <p:tgtEl>

  • AttributeNameList <p:attrNameLst>


[ISO/IEC 29500-1 1st Edition]

19.5.22 cBhvr (Common Behavior)

This element describes the common behaviors of animations.

[Example: Consider trying to emphasize text within a shape by changing the size of its font. The <anim> element should be used as follows:

  <p:anim to="1.5" calcmode="lin" valueType="num">
    <p:cBhvr override="childStyle">
      <p:cTn id="6" dur="2000" fill="hold"/>
      <p:tgtEl>
        <p:spTgt spid="3">
          <p:txEl>
            <p:charRg st="4294967295" end="4294967295"/>
          </p:txEl>
        </p:spTgt>
      </p:tgtEl>
      <p:attrNameLst>
        <p:attrName>style.fontSize</p:attrName>
      </p:attrNameLst>
    </p:cBhvr>
  </p:anim>

end example]

Parent Elements

anim (§19.5.1); animClr (§19.5.2); animEffect (§19.5.3); animMotion (§19.5.4); animRot (§19.5.5); animScale (§19.5.6); cmd (§19.5.28); set (§19.5.66)

Child Elements

Subclause

attrNameLst (Attribute Name List)

§19.5.8

cTn (Common Time Node Properties)

§19.5.33

tgtEl (Target Element)

§19.5.81

Attributes

Description

accumulate (Accumulate)

This attribute makes a repeating animation build with each iteration when set to "always."

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

additive (Additive)

This attribute specifies how to apply the animation values to the original value for the property.

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

by (By)

This attribute specifies a relative offset value for the animation..

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

from (From)

This attribute specifies the starting value of the animation.

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

override (Override)

This attribute specifies how a behavior should override values of the attribute being animated on the target element. The "childStyle" clears the attributes on the children contained inside the target element.

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

rctx (Runtime Context)

This attribute describes the runtime context of the animation. The currently-understood values are “PPT” and “IE.” This is used to specify the behavior used when animating in the PPT slideshow vs. IE HTML runtime. An example can be seen with the transparency effect. In IE, the transparency is animated as a bitmap, where in PPT, the style.opacity property of a shape is used to animate the transparency.

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

to (To)

This attribute specifies the ending value of the animation.

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

xfrmType (Transform Type)

This attribute specifies the kind of transform to be used.

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

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

Community Additions

ADD
Show:
© 2015 Microsoft