public void DocumentBuilderApplyParagraphStyle()
{
//ExStart
//ExId:DocumentBuilderApplyParagraphStyle
//ExSummary:Shows how to apply a paragraph style.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Set paragraph style
builder.ParagraphFormat.StyleIdentifier = StyleIdentifier.Title;
builder.Write("Hello");
//ExEnd
}