This documentation is archived and is not being maintained.

TargetElement Class

Target Element Trigger Choice.When the object is serialized out as xml, its qualified name is p:tgtEl.

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

[ChildElementInfoAttribute(typeof(BookmarkTarget), FileFormatVersions.Office2010)]
public class TargetElement : OpenXmlCompositeElement

The following table lists the possible child types:

  • SlideTarget <p:sldTgt>

  • SoundTarget <p:sndTgt>

  • ShapeTarget <p:spTgt>

  • InkTarget <p:inkTgt>

  • DocumentFormat.OpenXml.Office2010.PowerPoint.BookmarkTarget <p14:bmkTgt>

[ISO/IEC 29500-1 1st Edition]

19.5.81 tgtEl (Target Element)

This element specifies the target children elements which have the animation effects applied to.

[Example: Consider a shape with ID 3 with a fade effect animation applied to it. The <tgtEl> element should be used as follows:

  <p:animEffect transition="in" filter="fade">
      <p:cTn id="7" dur="2000"/>
        <p:spTgt spid="3"/>

end example]

Parent Elements

cBhvr (§19.5.22); cMediaNode (§19.5.29); cond (§19.5.31); endSync (§19.5.39)

Child Elements


inkTgt (Ink Target)


sldTgt (Slide Target)


sndTgt (Sound Target)


spTgt (Shape Target)


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