This documentation is archived and is not being maintained.

Condition Class

Condition.When the object is serialized out as xml, its qualified name is p:cond.

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

public class Condition : TimeListConditionalType

The following table lists the possible child types:

  • TargetElement <p:tgtEl>

  • TimeNode <p:tn>

  • RuntimeNodeTrigger <p:rtn>

[ISO/IEC 29500-1 1st Edition]

19.5.31 cond (Condition)

This element specifies conditions on time nodes in a timeline. It is used within a list of start condition or list of end condition elements.

[Example: For example, suppose we have a shape with a two second delay after the animation is started.

    <p:cond delay="2000"/>
    <p:set> … </p:set>
    <p:animEffect transition="in" filter="blinds(horizontal)">
        <p:cTn id="7" dur="1000"/>
          <p:spTgt spid="4"/>

end example]

Parent Elements

endCondLst (§19.5.37); nextCondLst (§19.5.51); prevCondLst (§19.5.55); stCondLst (§19.5.73)

Child Elements


rtn (Runtime Node Trigger Choice)


tgtEl (Target Element)


tn (Time Node)




delay (Trigger Delay)

This attribute describes the delay after an animation is triggered.

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

evt (Trigger Event)

This attribute describes the event that triggers an animation.

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

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