Table of Contents

Class ShapeRef

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

A reference to a drawing whose content is a shape or shape group rather than a plain picture (a w:drawing holding wpg:wgp or wps:wsp, or a w:pict holding VML shapes). Anchoring is shared with ImageRef through ImageAnchor, so shapes float, wrap and stack exactly as pictures do. The complete source XML is preserved as an unknown-XML island so unmodelled markup round-trips losslessly.

public sealed class ShapeRef : RunContentInline
Inheritance
ShapeRef
Inherited Members
Extension Methods

Constructors

ShapeRef()

Properties

Anchor

Gets or sets the anchoring data for floating drawings, or null for inline drawings.

Children

Gets the text-body blocks of every shape in the tree, in paint order, so shape text participates in document-wide text extraction and visitor traversal.

Description

Gets or sets the alternative text (wp:docPr descr), or null.

DrawingId

Gets or sets the drawing object id (wp:docPr id), or null.

Height

Gets or sets the display height (wp:extent cy).

Name

Gets or sets the drawing object name (wp:docPr name), or null.

OleObject

Gets or sets the embedded object this drawing is the preview for, or null when the drawing stands for itself.

Placement

Gets or sets how the drawing participates in text flow.

Root

Gets or sets the root of the shape tree, or null when nothing was modelled.

Width

Gets or sets the display width (wp:extent cx).

Methods

Accept(DomVisitor)

Dispatches to the visitor method for this node's concrete type.

CloneCore()

Creates the deep copy for Clone(). Implementations copy all owned state, deep-clone children and copy unknown-XML islands.