---
title: "עבודה עםפונטים C#"
---

גופן הוא קבוצה של דמויות עם גודל מסוים, צבע ועיצוב. Aspose.Words מאפשר לך לעבוד עם גופנים באמצעות [Fonts](https://reference.aspose.com/words/net/aspose.words.fonts/) המונחים: [Font](https://reference.aspose.com/words/net/aspose.words/font/) מעמד.

## המונחים:

פורמט הגופן הנוכחי מיוצג על ידי **Font** החפץ חזר [Font](https://reference.aspose.com/words/net/aspose.words/documentbuilder/font/) רכוש. The The The **Font** הכיתה מכילה מגוון רחב של תכונות גופניות, העתקת אלה הזמינים ב Microsoft Word.

הדוגמה הבאה של הקוד מראה כיצד להגדיר פורמט גופני:

{{< gist "aspose-com-gists" "0b968ac8900f80c11e109dffb105f3da" "Examples-CSharp-Programming-Documents-Document-DocumentBuilderSetFormatting-DocumentBuilderSetFontFormatting.cs" >}}

תכונות מילוי זמינים גם עבור גופנים כדי להגדיר פורמט טקסט מלא. זה מאפשר לשנות, למשל, את הצבע הקדמי או את השקיפות של הטקסט למלא.

## עקבו אחרי Font Line Spacing

קו פונט ספאק הוא המרחק האנכי בין קווי הבסיס של שני קווים רצופים של טקסט. אז קו ספאק כולל את החלל הריק בין קווים יחד עם גובה הדמות עצמה.

The The The [LineSpacing](https://reference.aspose.com/words/net/aspose.words/font/linespacing/) הנכס הוצג בפני **Font** שיעור להשיג ערך זה, כפי שמוצג בדוגמה להלן:

{{< gist "aspose-com-gists" "0b968ac8900f80c11e109dffb105f3da" "Examples-CSharp-Programming-Documents-Document-GetFontLineSpacing-GetFontLineSpacing.cs" >}}

## תגית: Mark

כמה שפות מזרח אסיה משתמשות בסימן דגש מיוחד כדי לציין דגש. The The The **Font** הכיתה מספקת [EmphasisMark](https://reference.aspose.com/words/net/aspose.words/font/emphasismark/) לרכוש או להגדיר [EmphasisMark](https://reference.aspose.com/words/net/aspose.words/emphasismark/) ערכי enumeration יש ליישם בעת עיצוב.

דוגמה לקוד הבא מראה כיצד להגדיר את **EphasisMark** רכוש:

{{< gist "aspose-com-gists" "0b968ac8900f80c11e109dffb105f3da" "Examples-CSharp-Programming-Documents-Document-DocumentBuilderSetFormatting-SetFontEmphasisMark.cs" >}}
