TX Text Control .NET Server

Italic Property

Property|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the italic attribute of the style.

Syntax

public bool Italic { get; set; }

Examples

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);