FormattedText.SetFontTypeface 메서드

정의

FormattedText 개체에 대한 글꼴 서체를 설정합니다.

오버로드

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는 , , FontWeightFontStyleFontStretchFontFamily조합을 나타냅니다. Typeface supports multiple constructors, one of which constructs based on a typeface name, another of which takes discrete values for FontFamily, FontWeight, FontStyle, and 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는 , , FontWeightFontStyleFontStretchFontFamily조합을 나타냅니다. Typeface supports multiple constructors, one of which constructs based on a typeface name, another of which takes discrete values for FontFamily, FontWeight, FontStyle, and FontStretch.

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

적용 대상