FormattedText

FormattedText

סקירה כללית

FormattedText הוא שיעור ב Aspose.PDF FOSS עבור .NET.

מייצג טקסט פורמט המשמש בפעולות סטמפ ומנד.

שיעור זה מספק 26 שיטות לעבוד עם אובייקטים FormattedText בתוכניות .NET. שיטות זמינות כוללות: AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle. כל החברים הציבוריים זמינים לכל יישום .NET לאחר התקנת Aspose.PDF FOSS עבור חבילת .Net. רכוש : BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded,ועוד שלושה.

מאפיינים

שםסוגAccessתיאור
Textstringקראוהקו הראשון של תוכן הטקסט.
FontSizedoubleקרא / כתיבהגודל המילה בנקודות.
FontNamestringקרא / כתיבהשם הפורט (PDF base font name).
ForegroundColorColorקרא / כתיבהצבע טקסט ( text color ).
BackgroundColorColorקרא / כתיבהצבע רקע.
IsEmbeddedboolקרא / כתיבההאם הטקסט מוטבע (לפי טקסטים לא סטנדרטיים).
CustomFontFilestring?קרא / כתיבהנתיב קובץ טקסט מותאם אישית (ל TrueType טופס הוספת).
TextWidthfloatקראוקדימה רוחב הטקסט על האות הנוכחית וגודל, בנקודות.
TextHeightfloatקראוגובה כללי של בלוק הטקסט המפורמט (סכום הגובה של שורות).

שיטות

Signatureתיאור
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(טקסט, טקסט צבע, backColor, textFont, TextEncoding, embedded, texSize, lineSpacing) על ההדפסה הזו FormattedText.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)קוראים FormattedText(טקסט, טקסט צבע, backColor, textFont, TextEncoding, embedded, texSize, lineSpacing) על ההדפסה הזו FormattedText.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)קוראים FormattedText(טקסט, טקסט צבע, backColor, textFont, TextEncoding, embedded, texSize, lineSpacing) על ההדפסה הזו FormattedText.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color)זוג הקדמה + זוגי הקודם / האחורי.
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color לפני + FontStyle +EncodingType, אין שורהSpacing.
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)System.Drawing.Color לפני + FontStyle + [PlattehOLDer=2} = קו שדה.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)[מקום] מפתח / רקע + מגרש.
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)יצירת מפתח עם מפת ה-Platform ו-Metown.
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).

ראה גם

 עברית