Style
Style
개요
Style은 Aspose.Cells FOSS for TypeScript 안에 있는 클래스입니다. 상속 대상: StyleType.
이 클래스는 TypeScript 프로그램의 Style 객체를 위해 37개의 메서드를 선언합니다. 사용 가능한 메서드에는 constructor, getAlignment, getBackgroundColor, getBorder, getFill, getFont, getFontColor, getFontName, getFontSize, getForegroundColor, getHorizontalAlignment, getNumberFormat 및 추가 25개의 메서드가 포함됩니다. 공개 멤버는 Aspose.Cells FOSS for TypeScript 패키지를 설치한 후 모든 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를 반환합니다. |
setBold(bold: boolean) | 굵게 값을 설정합니다. |
isItalic() → boolean | italic이 설정된 경우 true를 반환합니다. |
setItalic(italic: boolean) | italic 값을 설정합니다. |
getFontName() → string | 폰트 이름을 반환합니다. |
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 | wrap text가 설정된 경우 true를 반환합니다. |
setWrapText(wrapText: boolean) | wrap text 값을 설정합니다. |
isLocked() → boolean | locked가 설정된 경우 true를 반환합니다. |
setLocked(locked: boolean) | 잠긴 값을 설정합니다. |
isHidden() → boolean | hidden이 설정된 경우 true를 반환합니다. |
setHidden(hidden: boolean) | 숨겨진 값을 설정합니다. |
toXml() → string | 이 Style 인스턴스에서 toXml을 호출합니다. |