Method SetShapeDash
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
documentWordDocumentThe document that holds the shape.
shapeShapeRefThe shape.
dashShapeDashThe dash.
Returns
- DocumentEdit
The edit; the dash the drawing already states gives an empty edit.
Exceptions
- ArgumentNullException
documentorshapeis null.- ArgumentException
The shape is not in
documentor 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.