Partager via


SetBehavior Class

Set Time Node Behavior.When the object is serialized out as xml, its qualified name is p:set.

Inheritance Hierarchy

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

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

Syntax

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

Remarks

The following table lists the possible child types:

  • CommonBehavior <p:cBhvr>

  • ToVariantValue <p:to>

[ISO/IEC 29500-1 1st Edition]

19.5.66 set (Set Time Node Behavior)

This element allows the setting of a particular property value to a fixed value while the behavior is active and restores the value when the behavior is reset or turned off.

[Example: For example, suppose we want to set certain properties during an animation effect. The <set> element should be used as follows:

<p:childTnLst>
  <p:set>
    <p:cBhvr>
      <p:cTn id="6" dur="1" fill="hold"> … </p:cTn>
      <p:tgtEl>
        <p:spTgt spid="4"/>
      </p:tgtEl>
      <p:attrNameLst>
        <p:attrName>style.visibility</p:attrName>
      </p:attrNameLst>
    </p:cBhvr>
    <p:to>
      <p:strVal val="visible"/>
    </p:to>
  </p:set>
  <p:animEffect transition="in" filter="blinds(horizontal)">
    …
</p:animEffect>
</p:childTnLst>

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

to (To)

§19.5.89

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

SetBehavior Members

DocumentFormat.OpenXml.Presentation Namespace