Table of Contents

Method SetShapeDash

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

SetShapeDash(WordDocument, ShapeRef, ShapeDash)

Sets a shape's dash, as Word's Shape Outline > Dashes does (Phase 178, WQ-0159).

public static DocumentEdit SetShapeDash(this WordDocument document, ShapeRef shape, ShapeDash dash)

Parameters

document WordDocument

The document that holds the shape.

shape ShapeRef

The shape.

dash ShapeDash

The dash.

Returns

DocumentEdit

The edit; the dash the drawing already states gives an empty edit.

Exceptions

ArgumentNullException

document or shape is null.

ArgumentException

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

InvalidOperationException

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