Method SetShapeLineEnds
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
documentWordDocumentThe document that holds the shape.
shapeShapeRefThe shape (a line or a connector; a closed shape draws none).
headShapeLineEndKindThe start's arrowhead.
tailShapeLineEndKindThe end's arrowhead.
Returns
- DocumentEdit
The edit; the arrowheads the drawing already states give an empty edit.
Exceptions
- ArgumentNullException
documentorshapeis null.- ArgumentException
The shape is not in
documentor 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.