Table of Contents

Method SetFormat

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetFormat(Func<CadMTextParagraphFormat, CadMTextParagraphFormat>)

Changes how the selected paragraphs, or the caret's, are set: their indents, tab stops and spacing, one undo step. Each is written as AutoCAD writes it, what differs from the paragraph before, and the paragraph after them is written back to how it was: a tab stop at 10 set on the first of "A", "B" in an MTEXT 2.5 high writes \pxt4;A\P\ptz;B.

public void SetFormat(Func<CadMTextParagraphFormat, CadMTextParagraphFormat> change)

Parameters

change Func<CadMTextParagraphFormat, CadMTextParagraphFormat>

What becomes of each paragraph's format.

Exceptions

ArgumentNullException

Thrown when the change is null.