Class Underline
Represents the underline formatting applied to text in a Word document.
Inheritance
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class Underline : Object
Constructors
Underline()
Initializes a new instance of the Underline class with default values.
Declaration
public Underline()
Underline(UnderlineValues, Color, Color, Int32, Double)
Initializes a new instance of the Underline class with the specified parameters.
Declaration
public Underline(UnderlineValues val, Color color, Color themeColor, int themeShade, double themeTint)
Parameters
| Type | Name | Description |
|---|---|---|
| UnderlineValues | val | The style of the underline. |
| Color | color | The color of the underline. |
| Color | themeColor | The theme color of the underline. |
| System.Int32 | themeShade | The shade of the theme color used for the underline. |
| System.Double | themeTint | The tint of the theme color used for the underline. |
Properties
Color
Gets or sets the color of the underline.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
LineValue
Gets or sets the style of the underline.
Declaration
public Nullable<UnderlineValues> LineValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<UnderlineValues> |
ThemeColor
Gets or sets the theme color of the underline.
Declaration
public Color ThemeColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ThemeShade
Gets or sets the shade of the theme color used for the underline.
Declaration
public Nullable<int> ThemeShade { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
ThemeTint
Gets or sets the tint of the theme color used for the underline.
Declaration
public Nullable<double> ThemeTint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Double> |
Methods
Clone()
Creates a copy of this Underline object.
Declaration
public Underline Clone()
Returns
| Type | Description |
|---|---|
| Underline | A new Underline object with the same property values. |