Style
סקירה כללית
Style היא מחלקה ב-Aspose.Cells FOSS עבור TypeScript. יורשת מ: StyleType.
המחלקה הזו מצהירה על 37 שיטות עבור אובייקטי Style בתוכניות TypeScript. השיטות הזמינות כוללות: constructor, getAlignment, getBackgroundColor, getBorder, getFill, getFont, getFontColor, getFontName, getFontSize, getForegroundColor, getHorizontalAlignment, getNumberFormat, ועוד 25 שיטות נוספות. חברים ציבוריים נגישים לכל יישום TypeScript לאחר התקנת חבילת Aspose.Cells FOSS עבור TypeScript. מאפיינים: alignment, border, fill, font, numberFormat, protection.
מאפיינים
| שם | סוג | גישה | תיאור |
|---|---|---|---|
font | : Font | קריאה/כתיבה | מקבל או מגדיר את הגופן. |
fill | : Fill | קריאה/כתיבה | מקבל או מגדיר את המילוי. |
border | : Border | קריאה/כתיבה | מקבל או מגדיר את הגבול. |
alignment | : Alignment | קריאה/כתיבה | מקבל או מגדיר את היישור. |
numberFormat | : string | קריאה/כתיבה | מקבל או מגדיר את פורמט המספר. |
protection | : Protection | קריאה/כתיבה | מקבל או מגדיר את ההגנה. |
שיטות
| חתימה | תיאור |
|---|---|
constructor() | קורא לבונה על מופע Style זה. |
getFont() → Font | מחזיר את הגופן. |
setFont(font: Font) | מגדיר את ערך הגופן. |
getFill() → Fill | מחזיר את המילוי. |
setFill(fill: Fill) | מגדיר את ערך המילוי. |
getBorder() → Border | מחזיר את הגבול. |
setBorder(border: Border) | מגדיר את ערך הגבול. |
getAlignment() → Alignment | מחזיר את היישור. |
setAlignment(alignment: Alignment) | מגדיר את ערך היישור. |
setNumberFormat(format: string) | מגדיר את ערך פורמט המספר. |
getNumberFormat() → `string | undefined` |
setProtection(protection: Protection) | מגדיר את ערך ההגנה. |
isBold() → boolean | מחזיר true אם bold מוגדר. |
setBold(bold: boolean) | מגדיר את ערך ה-bold. |
isItalic() → boolean | מחזיר true אם italic מוגדר. |
setItalic(italic: boolean) | מגדיר את ערך ה-italic. |
getFontName() → string | מחזיר את שם ה-font. |
setFontName(name: string) | מגדיר את ערך שם הגופן. |
getFontSize() → number | מחזיר את גודל הפונט. |
setFontSize(size: number) | מגדיר את ערך גודל הגופן. |
getFontColor() → `string | undefined` |
setFontColor(color: string) | מגדיר את ערך צבע הפונט. |
getForegroundColor() → `string | undefined` |
setForegroundColor(color: string) | מגדיר את ערך צבע הקידמה. |
getBackgroundColor() → `string | undefined` |
setBackgroundColor(color: string) | מגדיר את ערך צבע הרקע. |
getHorizontalAlignment() → string | מחזיר את היישור האופקי. |
setHorizontalAlignment(alignment: Alignment["horizontal"]) | מגדיר את ערך היישור האופקי. |
getVerticalAlignment() → string | מחזיר את היישור האנכי. |
setVerticalAlignment(alignment: Alignment["vertical"]) | מגדיר את ערך היישור האנכי. |
isWrapText() → boolean | מחזיר true אם wrap text מוגדר. |
setWrapText(wrapText: boolean) | מגדיר את ערך עטיפת הטקסט. |
isLocked() → boolean | מחזיר true אם locked מוגדר. |
setLocked(locked: boolean) | מגדיר את הערך הנעול. |
isHidden() → boolean | מחזיר true אם hidden מוגדר. |
setHidden(hidden: boolean) | מגדיר את הערך המוסתר. |
toXml() → string | קוראים ל-toXml על מופע ה-Style הזה. |