TargetElement Class

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

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(ShapeTarget))> _
<ChildElementInfoAttribute(GetType(BookmarkTarget), FileFormatVersions.Office2010)> _
<ChildElementInfoAttribute(GetType(SlideTarget))> _
<ChildElementInfoAttribute(GetType(SoundTarget))> _
<ChildElementInfoAttribute(GetType(InkTarget))> _
Public Class TargetElement _
    Inherits OpenXmlCompositeElement
Dim instance As TargetElement
[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.

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


TargetElement Members

DocumentFormat.OpenXml.Presentation Namespace