Table of Contents

Method SetShapeLineEnds

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

SetShapeLineEnds(WordDocument, ShapeRef, ShapeLineEndKind, ShapeLineEndKind)

Sets a shape's arrowheads, as Word's Shape Outline > Arrows does (Phase 178): each end's type, or none.

public static DocumentEdit SetShapeLineEnds(this WordDocument document, ShapeRef shape, ShapeLineEndKind head, ShapeLineEndKind tail)

Parameters

document WordDocument

The document that holds the shape.

shape ShapeRef

The shape (a line or a connector; a closed shape draws none).

head ShapeLineEndKind

The start's arrowhead.

tail ShapeLineEndKind

The end's arrowhead.

Returns

DocumentEdit

The edit; the arrowheads the drawing already states give an empty edit.

Exceptions

ArgumentNullException

document or shape is null.

ArgumentException

The shape is not in document or not in a paragraph; a kind is not defined.

InvalidOperationException

The shape is not one DrawingML shape, or it is in a shape's text box.