public method ParagraphBuilder.BuildToSection

Brief

Builds a paragraph to a section.

Declaration
C#
Gehtsoft.PDFFlow.Builder.SectionBuilder  BuildToSection ()

Details

Helps you to switch from ParagraphBuilder to SectionBuilder "on the fly". When some method returns an instance of ParagraphBuilder, but you need now to call a method of SectionBuilder, insert the BuildToSection() method between them.

Example:

 DocumentBuilder.New().AddSection().AddParagraph("text1").SetFont(font1).BuildToSection().AddParagraph("text2").SetFont(font2);

Declared in ParagraphBuilder

back