Class TextStyle
Namespace: Aspose.Tasks.Visualization
Assembly: Aspose.Tasks.dll (25.2.0)
Change the visual style of the text for an item in the project view.
public class TextStyle
Inheritance
Derived
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
TextStyle()
Initializes a new instance of the Aspose.Tasks.Visualization.TextStyle class with default settings.
public TextStyle()
TextStyle(float, FontStyles)
Initializes a new instance of the Aspose.Tasks.Visualization.TextStyle class with the default font and specified font size and style.
public TextStyle(float fontSize, FontStyles fontStyle)
Parameters
fontSize
float
Size of font of TextStyle.
fontStyle
FontStyles
Style of font of TextStyle.
TextStyle(FontStyles)
Initializes a new instance of the Aspose.Tasks.Visualization.TextStyle class with the default font and specified font style.
public TextStyle(FontStyles fontStyle)
Parameters
fontStyle
FontStyles
Style of font to apply to default font.
TextStyle(FontDescriptor)
Initializes a new instance of the Aspose.Tasks.Visualization.TextStyle class with the specified font settings.
public TextStyle(FontDescriptor font)
Parameters
font
FontDescriptor
Font of the TextStyle.
Properties
BackgroundColor
Gets or sets background color of the text style. Aspose.Tasks.Visualization.TextStyle.Color.
public Color BackgroundColor { get; set; }
Property Value
BackgroundPattern
Gets or sets background pattern of the text style. Aspose.Tasks.Visualization.TextStyle.BackgroundPattern.
public BackgroundPattern BackgroundPattern { get; set; }
Property Value
Color
Gets or sets color of the text.
public Color Color { get; set; }
Property Value
Font
Gets or sets font of the text style.
public FontDescriptor Font { get; set; }
Property Value
ItemType
Gets or sets Aspose.Tasks.Visualization.TextItemType of the text style.
public virtual TextItemType ItemType { get; set; }