FormattedText

FormattedText

개요

FormattedText은(는) Aspose.PDF FOSS의 .NET용 클래스입니다.

스탬프 및 수선 작업에 사용되는 형식화된 텍스트를 나타냅니다.

이 클래스는 .NET 프로그램에서 FormattedText 객체를 다루기 위한 26개의 메서드를 제공합니다. 사용 가능한 메서드에는 AddNewLineText, FormattedText, IsCjk, SetCjkFontStyle이(가) 포함됩니다. 모든 공개 멤버는 Aspose.PDF FOSS for .NET 패키지를 설치한 후 모든 .NET 애플리케이션에서 접근할 수 있습니다. 속성: BackgroundColor, CustomFontFile, FontName, FontSize, ForegroundColor, IsEmbedded 및 3개가 더 있습니다.

속성

이름유형액세스설명
Textstring읽기첫 번째 줄 텍스트 내용.
FontSizedouble읽기/쓰기포인트 단위 글꼴 크기.
FontNamestring읽기/쓰기폰트 이름 (PDF 기본 폰트 이름).
ForegroundColorColor읽기/쓰기전경(텍스트) 색상.
BackgroundColorColor읽기/쓰기배경 색상.
IsEmbeddedbool읽기/쓰기텍스트가 포함되어 있는지 여부 (비표준 글꼴의 경우).
CustomFontFilestring?읽기/쓰기사용자 정의 글꼴 파일 경로 (TrueType 글꼴 포함의 경우).
TextWidthfloat읽기현재 글꼴 및 크기에서 텍스트의 전진 너비(포인트 단위).
TextHeightfloat읽기서식이 지정된 텍스트의 높이(포인트 단위).

메서드

시그니처설명
FormattedText()빈 텍스트를 가진 새 FormattedText를 생성합니다.
FormattedText(text: string)지정된 텍스트를 가진 새 FormattedText를 생성합니다.
FormattedText(text: string, foregroundColor: Color, backgroundColor: Color)텍스트와 전경/배경 색상이 있는 FormattedText을(를) 생성합니다.
FormattedText(text: string, foregroundColor: FontColor)텍스트와 FontColor 전경/배경이 있는 FormattedText을(를) 생성합니다.
FormattedText(text: string, foregroundColor: FontColor, backgroundColor: FontColor)텍스트와 FontColor 전경/배경이 있는 FormattedText을(를) 생성합니다.
FormattedText(text: string, fontColor: FontColor, fontStyle: FontStyle, encodingType: EncodingType, embedded: bool, textSize: float)FontColor를 사용하여 전체 서식이 적용된 FormattedText을(를) 생성합니다.
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)줄 간격을 포함하여 FontColor을(를) 사용해 전체 서식이 적용된 FormattedText을(를) 만듭니다.
FormattedText(text: string, textColor: Color, backColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)System.Drawing.Color 전경/배경 및 글꼴 설정을 사용하여 FormattedText을(를) 만듭니다.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color 전경/배경 및 FontStyle을(를) 사용하여 FormattedText을(를) 만듭니다.
FormattedText(text: string, textColor: Color, backColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)이 FormattedText 인스턴스에서 FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing)를 호출합니다.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)이 FormattedText 인스턴스에서 FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing)를 호출합니다.
FormattedText(text: string, textColor: FontColor, backColor: FontColor, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)이 FormattedText 인스턴스에서 FormattedText(text, textColor, backColor, textFont, textEncoding, embedded, textSize, lineSpacing)를 호출합니다.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color)System.Drawing.Color 전경 + 전경/배경 쌍.
FormattedText(text: string, color: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color 전경 + FontStyle + EncodingType, lineSpacing 없음.
FormattedText(text: string, textColor: System.Drawing.Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)System.Drawing.Color 전경 + FontStyle + EncodingType + 줄 간격.
FormattedText(text: string, textColor: System.Drawing.Color, backColor: System.Drawing.Color, textFont: FontStyle, encoding: EncodingType, embedded: bool, textSize: float)System.Drawing.Color 전경/배경 + FontStyle.
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)System.Drawing.Color 전경과 글꼴 이름 또는 TrueType 글꼴 파일을 사용하여 FormattedText을 생성합니다.
FormattedText(text: string, textColor: Color, fontName: string, textEncoding: EncodingType, embedded: bool, fontSize: float)Aspose.Pdf.Color 전경색을 사용하고 글꼴 이름 또는 TrueType 글꼴 파일을 지정하여 FormattedText를 생성합니다.
FormattedText(text: string, color: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float)FontStyle (enum) 및 System.Drawing.Color을(를) 사용하여 FormattedText를 생성합니다.
FormattedText(text: string, textColor: Color, textFont: FontStyle, textEncoding: EncodingType, embedded: bool, textSize: float, lineSpacing: float)Aspose.Pdf.Color 전경/배경과 줄 간격을 사용하여 FormattedText를 생성합니다.
AddNewLineText(newLineText: string)새 텍스트 줄을 추가합니다.
AddNewLineText(newLineText: string, lineSpacing: float)사용자 지정 줄 간격으로 새 텍스트 줄을 추가합니다.
IsCjk()텍스트에 CJK 문자가 포함되어 있는지 확인합니다.
SetCjkFontStyle()글꼴을 CJK 지원 글꼴(MS Gothic에 해당)로 설정합니다.

참조

 한국어