共用方式為


WrapTopBottom Class

Top and Bottom Wrapping.When the object is serialized out as xml, its qualified name is wp:wrapTopAndBottom.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Wordprocessing.WrapTopBottom

Namespace:  DocumentFormat.OpenXml.Drawing.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

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

Remarks

The following table lists the possible child types:

  • EffectExtent <wp:effectExtent>

[ISO/IEC 29500-1 1st Edition]

20.4.2.20 wrapTopAndBottom (Top and Bottom Wrapping)

This element specifies that text shall wrap around the top and bottom of this object, but not its left or right edges.

[Example: Consider a DrawingML object using top and bottom wrapping and defined as follows:

<wp:anchor … >
  …
<wp:wrapTopAndBottom />
</wp:anchor>

The wrapTopAndBottom element specifies that text must wrap around neither side of this object. end example]

Parent Elements

anchor (§20.4.2.3)

Child Elements

Subclause

effectExtent (Object Extents Including Effects)

§20.4.2.6

Attributes

Description

distB (Distance From Text on Bottom Edge)

Specifies the minimum distance which shall be maintained between the bottom edge of this drawing object and any subsequent text within the document when this graphical object is displayed within the document's contents.

The distance shall be measured in EMUs (English Metric Units).

[Example: Consider a floating DrawingML object which must have one-half of an inch of padding between its bottom edge and the nearest text. This setting would be specified as follows:

<wp:anchor  >

  <wp:wrapTopAndBottom distB="457200"  />
</wp:anchor>

The distB attribute specifies that the padding distance must be 457200 EMUs or one-half of an inch. end example]

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

distT (Distance From Text on Top Edge)

Specifies the minimum distance which shall be maintained between the top edge of this drawing object and any subsequent text within the document when this graphical object is displayed within the document's contents.

The distance shall be measured in EMUs (English Metric Units).

[Example: Consider a floating DrawingML object which must have one-half of an inch of padding between its top edge and the nearest text. This setting would be specified as follows:

<wp:anchor  >

  <wp:wrapTopAndBottom distT="457200"  />
</wp:anchor>

The distT attribute specifies that the padding distance must be 457200 EMUs or one-half of an inch. end example]

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

[Note: The W3C XML Schema definition of this element’s content model (CT_WrapTopBottom) is located in §A.4.4. 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

WrapTopBottom Members

DocumentFormat.OpenXml.Drawing.Wordprocessing Namespace