ShapeTarget Class

Shape Target.When the object is serialized out as xml, its qualified name is p:spTgt.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(BackgroundAnimation))> _
<ChildElementInfoAttribute(GetType(GraphicElement))> _
<ChildElementInfoAttribute(GetType(SubShape))> _
<ChildElementInfoAttribute(GetType(OleChartElement))> _
<ChildElementInfoAttribute(GetType(TextElement))> _
Public Class ShapeTarget _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As ShapeTarget
[ChildElementInfoAttribute(typeof(BackgroundAnimation))]
[ChildElementInfoAttribute(typeof(GraphicElement))]
[ChildElementInfoAttribute(typeof(SubShape))]
[ChildElementInfoAttribute(typeof(OleChartElement))]
[ChildElementInfoAttribute(typeof(TextElement))]
public class ShapeTarget : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • BackgroundAnimation <p:bg>

  • SubShape <p:subSp>

  • OleChartElement <p:oleChartEl>

  • TextElement <p:txEl>

  • GraphicElement <p:graphicEl>

[ISO/IEC 29500-1 1st Edition]

19.5.72 spTgt (Shape Target)

The element specifies the shape in which to apply a certain animation to.

[Example: Consider a shape whose id is 3 in which we want to apply a fade animation effect. The <spTgt> 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

tgtEl (§19.5.81)

Child Elements

Subclause

bg (Background)

§19.5.10

graphicEl (Graphic Element)

§19.5.45

oleChartEl (Embedded Chart Element)

§19.5.52

subSp (Subshape)

§19.5.77

txEl (Text Element)

§19.5.91

Attributes

Description

spid (Shape ID)

This attribute specifies the shape identifier.

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

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

ShapeTarget Members

DocumentFormat.OpenXml.Presentation Namespace