Click or drag to resize
RunCharacterFormat Property
Gets or sets the character format.

Namespace: GemBox.Document
Assembly: GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1213
Syntax
public CharacterFormat CharacterFormat { get; set; }

Property Value

Type: CharacterFormat
The character format.
Remarks

This property is defined as direct formatting, since it is directly applied to the run and supersede any formatting from styles.

Note Note

If Run.Text is Empty, then Run and its Run.CharacterFormat won't be saved to DOCX.

In that case, if Run is the last or the only element in the parent Paragraph, use CharacterFormatForParagraphMarkParagraph.CharacterFormatForParagraphMark

of the parent paragraph to save character (font) formatting to DOCX.

For more information about paragraph formatting, see character formatting sample.

See Also