Typography.ContextualSwashes 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定值,該值會指定內容 Swash 形式的索引。
public:
property int ContextualSwashes { int get(); void set(int value); };
public int ContextualSwashes { get; set; }
member this.ContextualSwashes : int with get, set
Public Property ContextualSwashes As Integer
屬性值
標準 Swash 形式的索引。 預設值是 0 (零)。
備註
這個屬性會取得或設定擁有屬性的物件上的值,這是存取類別實例的唯一 Typography
Typography 方式。 此外,這個屬性支援附加屬性使用方式,以便在 XAML 中包含文字的物件上設定。
某些花飾字字符的組合會導致不討喜的外觀,例如相鄰字母的伸尾部分重疊。 使用內容花飾字可讓您使用會產生更佳外觀的替代花飾字字符。 下列文字顯示套用內容花飾字之前和之後的相同字組。
內容式 swash 的範例
下列程式碼範例示範如何使用 屬性,為 Pescadero 字型 ContextualSwashes 定義內容 Swash。
<Paragraph FontFamily="Pescadero" Typography.StandardSwashes="1">
Lyon <Run Typography.ContextualSwashes="1">L</Run>yon
</Paragraph>
XAML Attribute Usage
<object Typography.ContextualSwashes="int"/>
相依性屬性資訊
識別碼欄位 | ContextualSwashesProperty |
設定為 的中繼資料屬性 true |
AffectsMeasure、AffectsRender、Inherits |