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() → `stringundefined`
setProtection(protection: Protection)보호 값을 설정합니다.
isBold() → boolean볼드가 설정된 경우 true를 반환합니다.
setBold(bold: boolean)굵게 값을 설정합니다.
isItalic() → booleanitalic이 설정된 경우 true를 반환합니다.
setItalic(italic: boolean)italic 값을 설정합니다.
getFontName() → string폰트 이름을 반환합니다.
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() → booleanwrap text가 설정된 경우 true를 반환합니다.
setWrapText(wrapText: boolean)wrap text 값을 설정합니다.
isLocked() → booleanlocked가 설정된 경우 true를 반환합니다.
setLocked(locked: boolean)잠긴 값을 설정합니다.
isHidden() → booleanhidden이 설정된 경우 true를 반환합니다.
setHidden(hidden: boolean)숨겨진 값을 설정합니다.
toXml() → string이 Style 인스턴스에서 toXml을 호출합니다.

참조

 한국어