FormattedText.SetFontTypeface 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
개체의 글꼴 서체를 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는 , FontFamilyFontWeight및 FontStyle.의 FontStretch조합을 나타냅니다. Typeface는 여러 생성자를 지원하며, 그 중 하나는 서체 이름을 기반으로 하는 구문이고, 다른 생성자는 , FontFamilyFontWeight및 FontStyle에 대해 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)
매개 변수
- startIndex
- Int32
서체를 적용할 초기 문자의 시작 인덱스입니다.
- count
- Int32
서체를 적용할 문자 수입니다.
설명
Typeface는 , FontFamilyFontWeight및 FontStyle.의 FontStretch조합을 나타냅니다. Typeface는 여러 생성자를 지원하며, 그 중 하나는 서체 이름을 기반으로 하는 구문이고, 다른 생성자는 , FontFamilyFontWeight및 FontStyle에 대해 FontStretch불연속 값을 사용합니다.
전체 텍스트 문자열의 글꼴 서체를 설정하려면 메서드를 SetFontTypeface(Typeface) 사용합니다.