Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
字體是一組具有特定大小、顏色和設計的特定字符。Aspose.Words 讓您能透過 Fonts 命名空間和 Font 類別來工作。
目前字體格式化由 Font 物件回傳的 Font 屬性表示。 The Font 類別包含各種不同的字型屬性,與 Microsoft Word 中可用的屬性相似。
以下範例顯示如何設定字體格式:
填充屬性也可供字體使用,以設定文字填充格式。 這使得可以改變文字填充的前景色或不透明度。
字間距是指兩行文字的基線之間垂直距離。 所以行間距包含在行與行之間的空格,以及字體本身的高度。
LineSpacing屬性被引入了Font類別,以取得下例所示的值。
部分東亞語言使用特殊的強調標記來表示強調。 Font類別提供EmphasisMark屬性來取得或設定要應用格式化時使用的EmphasisMark枚舉值。
以下範例展示如何設定 EphasisMark 屬性:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.