wp:anchor
Anchor for Floating DrawingML Object
Element information
Namespace: http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing
Schema document: dml-wordprocessingDrawing.xsd
Type: wp:CT_Anchor
Properties: Global, Qualified
Content
- Sequence [1..1]
- wp:simplePos [1..1] Simple Positioning Coordinates
- wp:positionH [1..1] Horizontal Positioning
- wp:positionV [1..1] Vertical Positioning
- wp:extent [1..1] Inline Drawing Object Extents
- wp:effectExtent [0..1]
- Choice [1..1]
- wp:wrapNone No Text Wrapping
- wp:wrapSquare Square Wrapping
- wp:wrapTight Tight Wrapping
- wp:wrapThrough Through Wrapping
- wp:wrapTopAndBottom Top and Bottom Wrapping
- wp:docPr [1..1] Drawing Object Non-Visual Properties
- wp:cNvGraphicFramePr [0..1] Common DrawingML Non-Visual Properties
- a:graphic [1..1] Graphic Object
from group wp:EG_WrapType
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
distT | [0..1] | wp:ST_WrapDistance | Distance From Text on Top Edge | |
distB | [0..1] | wp:ST_WrapDistance | Distance From Text on Bottom Edge | |
distL | [0..1] | wp:ST_WrapDistance | Distance From Text on Left Edge | |
distR | [0..1] | wp:ST_WrapDistance | Distance From Text on Right Edge | |
simplePos | [0..1] | xsd:boolean | Page Positioning | |
relativeHeight | [1..1] | xsd:unsignedInt | Relative Z-Ordering Position | |
behindDoc | [1..1] | xsd:boolean | Display Behind Document Text | |
locked | [1..1] | xsd:boolean | Lock Anchor | |
layoutInCell | [1..1] | xsd:boolean | Layout In Table Cell | |
hidden | [0..1] | xsd:boolean | Hidden | |
allowOverlap | [1..1] | xsd:boolean | Allow Objects to Overlap |
Used in
- Type w:CT_Drawing (Element w:drawing)
Sample instance
<wp:anchor relativeHeight="1" behindDoc="true" locked="true" layoutInCell="true" allowOverlap="true"> <wp:simplePos x="1" y="1"/> <wp:positionH relativeFrom="margin"> <wp:align>left</wp:align> </wp:positionH> <wp:positionV relativeFrom="margin"> <wp:align>top</wp:align> </wp:positionV> <wp:extent cx="1" cy="1"/> <wp:effectExtent l="1" t="1" r="1" b="1"/> <wp:wrapNone/> <wp:docPr id="1" name="string"> <a:hlinkClick> <a:snd r:embed="string"/> <a:extLst>... </a:extLst> </a:hlinkClick> <a:hlinkHover> <a:snd r:embed="string"/> <a:extLst>... </a:extLst> </a:hlinkHover> <a:extLst> <a:ext> <!--any element--> </a:ext> </a:extLst> </wp:docPr> <wp:cNvGraphicFramePr> <a:graphicFrameLocks> <a:extLst>... </a:extLst> </a:graphicFrameLocks> <a:extLst> <a:ext> <!--any element--> </a:ext> </a:extLst> </wp:cNvGraphicFramePr> <a:graphic> <a:graphicData> <!--any element--> </a:graphicData> </a:graphic> </wp:anchor>