Aspose::Words::ParagraphFormat::set_HangingPunctuation method
ParagraphFormat::set_HangingPunctuation method
Sets a flag indicating whether hanging punctuation is enabled for the current paragraph.
void Aspose::Words::ParagraphFormat::set_HangingPunctuation(bool value)
Examples
Shows how to set special properties for Asian typography.
auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Document.docx"));
System::SharedPtr<Aspose::Words::ParagraphFormat> format = doc->get_FirstSection()->get_Body()->get_FirstParagraph()->get_ParagraphFormat();
format->set_FarEastLineBreakControl(true);
format->set_WordWrap(false);
format->set_HangingPunctuation(true);
doc->Save(get_ArtifactsDir() + u"ParagraphFormat.AsianTypographyProperties.docx");
See Also
- Class ParagraphFormat
- Namespace Aspose::Words
- Library Aspose.Words for C++