FormattedText.SetFontTypeface 메서드

정의

개체의 글꼴 서체를 FormattedText 설정합니다.

오버로드

Name Description
SetFontTypeface(Typeface)

개체의 전체 문자 집합에 대한 글꼴 서체를 FormattedText 설정합니다.

SetFontTypeface(Typeface, Int32, Int32)

개체의 지정된 문자 하위 집합에 대한 글꼴 서체를 FormattedText 설정합니다.

SetFontTypeface(Typeface)

개체의 전체 문자 집합에 대한 글꼴 서체를 FormattedText 설정합니다.

public:
 void SetFontTypeface(System::Windows::Media::Typeface ^ typeface);
public void SetFontTypeface(System.Windows.Media.Typeface typeface);
member this.SetFontTypeface : System.Windows.Media.Typeface -> unit
Public Sub SetFontTypeface (typeface As Typeface)

매개 변수

typeface
Typeface

Typeface 텍스트 서식에 사용할 수 있습니다.

설명

Typeface는 , FontFamilyFontWeightFontStyle.의 FontStretch조합을 나타냅니다. Typeface는 여러 생성자를 지원하며, 그 중 하나는 서체 이름을 기반으로 하는 구문이고, 다른 생성자는 , FontFamilyFontWeightFontStyle에 대해 FontStretch불연속 값을 사용합니다.

이 메서드는 전체 텍스트 문자열의 글꼴 서체를 설정합니다. 텍스트 문자열의 하위 집합에 대한 글꼴 서체를 설정하려면 메서드를 SetFontTypeface(Typeface, Int32, Int32) 사용합니다.

적용 대상

SetFontTypeface(Typeface, Int32, Int32)

개체의 지정된 문자 하위 집합에 대한 글꼴 서체를 FormattedText 설정합니다.

public:
 void SetFontTypeface(System::Windows::Media::Typeface ^ typeface, int startIndex, int count);
public void SetFontTypeface(System.Windows.Media.Typeface typeface, int startIndex, int count);
member this.SetFontTypeface : System.Windows.Media.Typeface * int * int -> unit
Public Sub SetFontTypeface (typeface As Typeface, startIndex As Integer, count As Integer)

매개 변수

typeface
Typeface

Typeface 텍스트 서식에 사용할 수 있습니다.

startIndex
Int32

서체를 적용할 초기 문자의 시작 인덱스입니다.

count
Int32

서체를 적용할 문자 수입니다.

설명

Typeface는 , FontFamilyFontWeightFontStyle.의 FontStretch조합을 나타냅니다. Typeface는 여러 생성자를 지원하며, 그 중 하나는 서체 이름을 기반으로 하는 구문이고, 다른 생성자는 , FontFamilyFontWeightFontStyle에 대해 FontStretch불연속 값을 사용합니다.

전체 텍스트 문자열의 글꼴 서체를 설정하려면 메서드를 SetFontTypeface(Typeface) 사용합니다.

적용 대상