Class TextStyle

Class TextStyle

名称: Aspose.Tasks.Visualization 集合: Aspose.Tasks.dll (25.4.0)

更改项目视图中的一个项目的文本视觉风格。

public class TextStyle

Inheritance

object TextStyle

Derived

TableTextStyle

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

TextStyle()

启动 Aspose.Tasks.Visualization.TextStyle 类的新例子与默认设置。

public TextStyle()

TextStyle(浮动, FontStyles)

启动一个新的例子 Aspose.Tasks.Visualization.TextStyle 类与默认字体和指定的字体大小和风格。

public TextStyle(float fontSize, FontStyles fontStyle)

Parameters

fontSize float

字体尺寸 TextStyle。

fontStyle FontStyles

文本风格的字体风格。

TextStyle(FontStyles)

启动一个新的例子 Aspose.Tasks.Visualization.TextStyle 类与默认字体和指定字体风格。

public TextStyle(FontStyles fontStyle)

Parameters

fontStyle FontStyles

字体风格适用于默认字体。

TextStyle(FontDescriptor)

启动 Aspose.Tasks.Visualization.TextStyle 类的一个新的例子,并提供指定的字体设置。

public TextStyle(FontDescriptor font)

Parameters

font FontDescriptor

文本风格的字体。

Properties

BackgroundColor

收到或设置文本风格背景颜色。色彩 色彩 色彩 色彩 色彩 色彩

public Color BackgroundColor { get; set; }

财产价值

Color

BackgroundPattern

收到或设置文本风格的背景模式。Aspose.Tasks.Visualization.TextStyle.BackgroundPattern。

public BackgroundPattern BackgroundPattern { get; set; }

财产价值

BackgroundPattern

Color

收到或设置文本的颜色。

public Color Color { get; set; }

财产价值

Color

Font

收到或设置文本风格的字体。

public FontDescriptor Font { get; set; }

财产价值

FontDescriptor

ItemType

获取或设置 Aspose.Tasks.Visualization.TextItem 文本风格的类型。

public virtual TextItemType ItemType { get; set; }

财产价值

TextItemType

 中文