Back to Devexpress

CharacterPropertiesBase.Italic Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterpropertiesbase-74d688fd.md

latest5.8 KB
Original Source

CharacterPropertiesBase.Italic Property

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

Declaration

csharp
bool? Italic { get; set; }
vb
Property Italic As Boolean?

Property Value

TypeDescription
Nullable<Boolean>

true if characters are italicized; otherwise, false or null , for a mixture of true and false.

|

Remarks

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

csharp
//Specify the style options
annotationCharStyle.Italic = true;
annotationCharStyle.FontSize = 12;

winforms-rich-edit-manage-tracked-changes/CS/XtraRichEdit_TrackChanges/Form1.cs#L39

csharp
characterProperties.FontName = "Arial";
characterProperties.Italic = true;
richEditControl1.Document.EndUpdateCharacters(characterProperties);

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Notes.cs#L79

csharp
characterProperties.ForeColor = System.Drawing.Color.Red;
characterProperties.Italic = true;

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/NotesActions.cs#L79

csharp
characterProperties.ForeColor = System.Drawing.Color.Red;
characterProperties.Italic = true;

word-document-api-examples/CS/CodeExamples/NotesActions.cs#L105

csharp
characterProperties.ForeColor = System.Drawing.Color.Red;
characterProperties.Italic = true;

winforms-rich-edit-text-formatting/VB/Text Formatting Example/Form1.vb#L142

vb
'Specify the style options
annotationCharStyle.Italic = True
annotationCharStyle.FontSize = 12

winforms-spreadsheet-how-to-edit-rich-text/VB/SpreadsheetRichText/RichTextEditForm.vb#L22

vb
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

vb
characterProperties.FontName = "Arial"
characterProperties.Italic = True
richEditControl1.Document.EndUpdateCharacters(characterProperties)

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Notes.vb#L58

vb
characterProperties.ForeColor = System.Drawing.Color.Red
characterProperties.Italic = True
'Finalize the character options update:

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/NotesActions.vb#L71

vb
characterProperties.ForeColor = System.Drawing.Color.Red
characterProperties.Italic = True

See Also

ToggleFontItalicCommand

ShowFontFormCommand

CharacterPropertiesBase Interface

CharacterPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace