Class OdfTextMeasureRequest
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
FontFamily
Gets or sets the font family. 取得或設定字型家族。
public string FontFamily { get; set; }
Property Value
FontSizePoints
Gets or sets the font size in points. 取得或設定以點為單位的字型大小。
public double FontSizePoints { get; set; }
Property Value
IsBold
Gets or sets whether the text is bold. 取得或設定文字是否為粗體。
public bool IsBold { get; set; }
Property Value
IsItalic
Gets or sets whether the text is italic. 取得或設定文字是否為斜體。
public bool IsItalic { get; set; }
Property Value
MaximumRuns
Gets or sets the maximum number of styled runs accepted by the measurer. 取得或設定量測器接受的具樣式片段數上限。
public int MaximumRuns { get; set; }
Property Value
MaximumTextElements
Gets or sets the maximum text elements accepted by the measurer. 取得或設定量測器接受的最大文字元素數。
public int MaximumTextElements { get; set; }
Property Value
RotationDegrees
Gets or sets the clockwise text rotation in degrees. 取得或設定文字順時針旋轉角度。
public double RotationDegrees { get; set; }
Property Value
Runs
Gets optional styled runs that override the single-style text properties when non-empty. 取得選用的具樣式片段;非空時會取代單一樣式文字屬性。
public IList<OdfTextMeasureRun> Runs { get; }
Property Value
Text
Gets or sets the text to measure. 取得或設定要量測的文字。
public string Text { get; set; }
Property Value
Wrap
Gets or sets whether wrapping is enabled. 取得或設定是否啟用換行。
public bool Wrap { get; set; }
Property Value
WritingMode
Gets or sets the writing mode. 取得或設定書寫模式。
public OdfWritingMode WritingMode { get; set; }