טקסט מעוצב
סקירה
FormattedText היא מחלקה ב‑Aspose.PDF FOSS עבור .NET.
מייצג טקסט מעוצב המשמש בפעולות חותמת ותיקון.
מחלקה זו מספקת 26 שיטות לעבודה עם אובייקטים מסוג FormattedText בתוכניות .NET.
השיטות הזמינות כוללות: AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle.
כל החברים הציבוריים נגישים לכל יישום .NET לאחר התקנת חבילת Aspose.PDF FOSS for .NET.
מאפיינים: BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded, ועוד 3.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
Text | string | Read | תוכן הטקסט של השורה הראשונה. |
FontSize | double | Read/Write | גודל הגופן בנקודות. |
FontName | string | Read/Write | שם הגופן (שם גופן הבסיס של PDF). |
ForegroundColor | Color | Read/Write | צבע חזית (טקסט). |
BackgroundColor | Color | Read/Write | צבע רקע. |
IsEmbedded | bool | Read/Write | האם הטקסט משובץ (לגופנים לא סטנדרטיים). |
CustomFontFile | string? | Read/Write | נתיב קובץ גופן מותאם אישית (להטמעת גופני TrueType). |
TextWidth | float | Read | רוחב השורה הארוכה ביותר בגופן/גודל המוגדר. |
TextHeight | float | Read | גובה כולל של בלוק הטקסט המפורמט (סכום גבהי השורות). |
שיטות
| Signature | Description |
|---|---|
FormattedText() | צור FormattedText חדש עם טקסט ריק. |
FormattedText(text: string) | צור FormattedText חדש עם הטקסט המוגדר. |
FormattedText(text: string, foregroundColor: Color, backgroundColor: Color) | צור FormattedText עם טקסט וצבעי רקע וחזית. |
FormattedText(text: string, foregroundColor: FontColor) | צור FormattedText עם טקסט וצבעי FontColor לחזית ולרקע. |
FormattedText(text: string, foregroundColor: FontColor, backgroundColor: FontColor) | צור FormattedText עם טקסט וצבעי FontColor לחזית ולרקע. |
FormattedText(text: string, fontColor: FontColor, fontStyle: FontStyle, encodingType: EncodingType, embedded: bool, textSize: float) | צור FormattedText עם עיצוב מלא באמצעות FontColor. |
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | צור FormattedText עם עיצוב מלא באמצעות FontColor עם חזית ורקע. |
FormattedText(text: string, fontColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | צור FormattedText עם עיצוב מלא באמצעות FontColor, כולל ריווח שורות. |
FormattedText(text: string, textColor: Color, backColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | צור FormattedText עם System.Drawing.Color לחזית/רקע והגדרות גופן. |
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float) | צור FormattedText עם System.Drawing.Color לחזית/רקע ו‑FontStyle. |
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | קורא ל‑FormattedText על מופע FormattedText זה. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | |
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color) | System.Drawing.Color לחזית + זוג חזית/רקע. |
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | System.Drawing.Color לחזית + FontStyle + EncodingType, ללא ריווח שורות. |
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | System.Drawing.Color לחזית + FontStyle + EncodingType + ריווח שורות. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float) | System.Drawing.Color לחזית/רקע + FontStyle. |
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | System.Drawing.Color לחזית/רקע + מחרוזת שם גופן. |
FormattedText(text: string, textColor: System.Drawing.Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | צור FormattedText עם System.Drawing.Color לחזית ושם גופן או קובץ גופן TrueType. |
FormattedText(text: string, textColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float) | צור FormattedText עם Aspose.Pdf.Color לחזית ושם גופן או קובץ גופן TrueType. |
FormattedText(text: string, color: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float) | צור FormattedText עם FontStyle (enum) ו‑System.Drawing.Color. |
FormattedText(text: string, textColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float) | צור FormattedText עם Aspose.Pdf.Color לחזית/רקע וריווח שורות. |
AddNewLineText(newLineText: string) | הוסף שורת טקסט חדשה. |
AddNewLineText(newLineText: string, lineSpacing: float) | הוסף שורת טקסט חדשה עם ריווח שורות מותאם. |
IsCjk() | בדוק אם הטקסט מכיל תווים CJK. |
SetCjkFontStyle() | הגדר את הגופן לגופן תומך CJK (מקביל ל‑MS Gothic). |