TX Text Control .NET Server

InlineStyle Constructor

Constructor|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

Creates a new instance of the InlineStyle class.

Syntax

InlineStyle(string)

Creates a new instance of the InlineStyle class based on the TextControl root style named [Normal].

public InlineStyle(string name);
ParameterDescription
name

Specifies the new style's name.

InlineStyle(string, string)

Creates a new instance of the InlineStyle class based on the specified base style.

public InlineStyle(string name, string baseStyle);
ParameterDescription
name

Specifies the new style's name.

baseStyle

Specifies the name of the style the new style based on.

InlineStyle(InlineStyle)

Creates a new root style that has all attributes of the specified style.

public InlineStyle(InlineStyle style);
ParameterDescription
style

Is a style the attributes of which are used to initialize the new style.

Examples

The following example creates and configures a reusable inline style for the document.

InlineStyle inlineStyle = new("Emphasis");
textControl.InlineStyles.Add(inlineStyle);