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() → `stringundefined`
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() → `stringundefined`
setFontColor(color: string)מגדיר את ערך צבע הפונט.
getForegroundColor() → `stringundefined`
setForegroundColor(color: string)מגדיר את ערך צבע הקידמה.
getBackgroundColor() → `stringundefined`
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 הזה.

ראה גם

 עברית