underline property
DocumentBuilder.underline property
Gets/sets underline type for the current font.
@property
def underline(self) -> aspose.words.Underline:
...
@underline.setter
def underline(self, value: aspose.words.Underline):
...
Examples
Shows how to format text inserted by a document builder.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
builder.underline = aw.Underline.DASH
builder.font.color = aspose.pydrawing.Color.blue
builder.font.size = 32
# The builder applies formatting to its current paragraph and any new text added by it afterward.
builder.writeln('Large, blue, and underlined text.')
doc.save(file_name=ARTIFACTS_DIR + 'DocumentBuilder.InsertUnderline.docx')
See Also
- module aspose.words
- class DocumentBuilder