目錄 / Table of Contents

Class OdfTextMeasureRequest

Namespace
OdfKit.Styles
Assembly
OdfKit.dll

Describes a styled text block to be measured. 描述要量測的具樣式文字區塊。

public sealed class OdfTextMeasureRequest
Inheritance
OdfTextMeasureRequest
Inherited Members

Constructors

OdfTextMeasureRequest()

public OdfTextMeasureRequest()

Properties

AvailableWidthCentimeters

Gets or sets the available width in centimeters; null disables wrapping. 取得或設定以公分為單位的可用寬度;null 表示不換行。

public double? AvailableWidthCentimeters { get; set; }

Property Value

double?

FontFamily

Gets or sets the font family. 取得或設定字型家族。

public string FontFamily { get; set; }

Property Value

string

FontSizePoints

Gets or sets the font size in points. 取得或設定以點為單位的字型大小。

public double FontSizePoints { get; set; }

Property Value

double

IsBold

Gets or sets whether the text is bold. 取得或設定文字是否為粗體。

public bool IsBold { get; set; }

Property Value

bool

IsItalic

Gets or sets whether the text is italic. 取得或設定文字是否為斜體。

public bool IsItalic { get; set; }

Property Value

bool

MaximumRuns

Gets or sets the maximum number of styled runs accepted by the measurer. 取得或設定量測器接受的具樣式片段數上限。

public int MaximumRuns { get; set; }

Property Value

int

MaximumTextElements

Gets or sets the maximum text elements accepted by the measurer. 取得或設定量測器接受的最大文字元素數。

public int MaximumTextElements { get; set; }

Property Value

int

RotationDegrees

Gets or sets the clockwise text rotation in degrees. 取得或設定文字順時針旋轉角度。

public double RotationDegrees { get; set; }

Property Value

double

Runs

Gets optional styled runs that override the single-style text properties when non-empty. 取得選用的具樣式片段;非空時會取代單一樣式文字屬性。

public IList<OdfTextMeasureRun> Runs { get; }

Property Value

IList<OdfTextMeasureRun>

Text

Gets or sets the text to measure. 取得或設定要量測的文字。

public string Text { get; set; }

Property Value

string

Wrap

Gets or sets whether wrapping is enabled. 取得或設定是否啟用換行。

public bool Wrap { get; set; }

Property Value

bool

WritingMode

Gets or sets the writing mode. 取得或設定書寫模式。

public OdfWritingMode WritingMode { get; set; }

Property Value

OdfWritingMode