TargetElement Class

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

Inheritance Hierarchy

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

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

Syntax

声明
<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(ShapeTarget))]
[ChildElementInfoAttribute(typeof(BookmarkTarget), FileFormatVersions.Office2010)]
[ChildElementInfoAttribute(typeof(SlideTarget))]
[ChildElementInfoAttribute(typeof(SoundTarget))]
[ChildElementInfoAttribute(typeof(InkTarget))]
public class TargetElement : OpenXmlCompositeElement

Remarks

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 第 1 个版本]

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:cBhvr>
      <p:cTn id="7" dur="2000"/>
      <p:tgtEl>
        <p:spTgt spid="3"/>
      </p:tgtEl>
    </p:cBhvr>
  </p:animEffect>

end example]

Parent Elements

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

Child Elements

Subclause

inkTgt (Ink Target)

§19.5.47

sldTgt (Slide Target)

§19.5.67

sndTgt (Sound Target)

§19.5.70

spTgt (Shape Target)

§19.5.72

[Note: The W3C XML Schema definition of this element's content model (CT_TLTimeTargetElement) is located in §A.3. end note]

© ISO/IEC29500: 2008. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。

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

TargetElement Members

DocumentFormat.OpenXml.Presentation Namespace