Paragraph.TextIndent 屬性

定義

取得或設定值,這個值表示 Paragraph 的第一行要內縮多少。

public:
 property double TextIndent { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))]
public double TextIndent { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.LengthConverter))>]
member this.TextIndent : double with get, set
Public Property TextIndent As Double

屬性值

雙精度浮點數值,用來指定段落的第一行要內縮多少 (以與裝置無關的像素為單位)。 預設值為 0。

屬性

備註

XAML Attribute Usage

<object TextIndent="double"/>  
- or -  
<object TextIndent="qualifiedDouble"/>  

XAML 值

double
Double

值等於或大於 0.0 但小於 PositiveInfinity 的字串表示 Double 。 不合格的值是以裝置獨立圖元來測量。 字串不需要明確包含小數點。

qualifiedDouble
double如上所述的值,除了) 後面接著下列其中一個單位規範 px 之外 Auto , (:、、 incmpt

px (預設) 是裝置獨立單位 (,每個單位 1/96 英吋)

in 為英吋;1in==96px

cm 為公分;1cm== (96/2.54) px

pt 為點;1pt== (96/72) px

相依性屬性資訊

識別碼欄位 TextIndentProperty
設定為 的中繼資料屬性 true AffectsMeasure, AffectsRender

適用於