Italic Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the italic attribute of the style.
Syntax
public bool Italic { get; set; }Public Property Italic As BooleanExamples
The following example creates a reusable emphasis style and adds it to the document by using FormattingStyle.Italic.
FormattingStyle formattingStyle = new InlineStyle("Emphasis");
formattingStyle.Italic = true;
if (formattingStyle.Italic)
{
Console.WriteLine("Formatting Style: Italic is enabled.");
}
textControl.InlineStyles.Add((InlineStyle)formattingStyle);Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")
formattingStyle.Italic = True
If formattingStyle.Italic Then
Console.WriteLine("Formatting Style: Italic is enabled.")
End If
textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))