officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterpropertiesbase-74d688fd.md
Gets or sets a value indicating whether a character(s) is italicized.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
bool? Italic { get; set; }
Property Italic As Boolean?
| Type | Description |
|---|---|
| Nullable<Boolean> |
true if characters are italicized; otherwise, false or null , for a mixture of true and false.
|
Use the CharacterProperties interface to change character formatting.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Italic property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-rich-edit-text-formatting/CS/Text Formatting Example/Form1.cs#L150
//Specify the style options
annotationCharStyle.Italic = true;
annotationCharStyle.FontSize = 12;
winforms-rich-edit-manage-tracked-changes/CS/XtraRichEdit_TrackChanges/Form1.cs#L39
characterProperties.FontName = "Arial";
characterProperties.Italic = true;
richEditControl1.Document.EndUpdateCharacters(characterProperties);
winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Notes.cs#L79
characterProperties.ForeColor = System.Drawing.Color.Red;
characterProperties.Italic = true;
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/NotesActions.cs#L79
characterProperties.ForeColor = System.Drawing.Color.Red;
characterProperties.Italic = true;
word-document-api-examples/CS/CodeExamples/NotesActions.cs#L105
characterProperties.ForeColor = System.Drawing.Color.Red;
characterProperties.Italic = true;
winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L142
'Specify the style options
annotationCharStyle.Italic = True
annotationCharStyle.FontSize = 12
winforms-spreadsheet-how-to-edit-rich-text/VB/SpreadsheetRichText/RichTextEditForm.vb#L22
cp.ForeColor = run.Font.Color
cp.Italic = run.Font.Italic
cp.FontName = run.Font.Name
winforms-rich-edit-manage-tracked-changes/VB/XtraRichEdit_TrackChanges/Form1.vb#L33
characterProperties.FontName = "Arial"
characterProperties.Italic = True
richEditControl1.Document.EndUpdateCharacters(characterProperties)
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Notes.vb#L58
characterProperties.ForeColor = System.Drawing.Color.Red
characterProperties.Italic = True
'Finalize the character options update:
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/NotesActions.vb#L71
characterProperties.ForeColor = System.Drawing.Color.Red
characterProperties.Italic = True
See Also
CharacterPropertiesBase Interface