InlineStyle Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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);Public Sub New(name As String)| Parameter | Description |
|---|---|
| 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);Public Sub New(name As String, baseStyle As String)| Parameter | Description |
|---|---|
| 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);Public Sub New(style As InlineStyle)| Parameter | Description |
|---|---|
| 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);Dim inlineStyle As New InlineStyle("Emphasis")
textControl.InlineStyles.Add(inlineStyle)