PeachDrawing.Text

PeachDrawing.Text.Layout

ParagraphBuilder Class

Collects the text and the runs of a Paragraph.

public sealed class ParagraphBuilder

Inheritance System.Object → ParagraphBuilder

Constructors  
ParagraphBuilder(RunStyle) Creates a builder whose text is set in baseStyle until a run is pushed.
Methods  
AddInlineBox(InlineBox) Adds an inline box in the current run: it is one character of the paragraph’s text (U+FFFC), sized as given.
AddText(string) Adds text in the current run.
Build() Builds the paragraph from what has been added.
PopRun() Ends the innermost run started by PushRun(RunStyle).
PushRun(RunStyle) Starts a run: the text added until the matching PopRun() is set in style.
SetStyle(ParagraphStyle) Sets how the paragraph as a whole is set.