FontStyle 구조체

정의

글꼴 스타일을 보통, 기울임꼴 또는 오블리크로 나타내는 구조를 정의합니다.

public value class FontStyle : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.FontStyleConverter))]
[System.Windows.Localizability(System.Windows.LocalizationCategory.None)]
public struct FontStyle : IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.FontStyleConverter))>]
[<System.Windows.Localizability(System.Windows.LocalizationCategory.None)>]
type FontStyle = struct
    interface IFormattable
Public Structure FontStyle
Implements IFormattable
상속
FontStyle
특성
구현

예제

다음 예제에서는 "Italic" 으로 FontStyle합니다.

<TextBlock FontStyle="Italic">Italic font style</TextBlock>

설명

글꼴의 기울기를 분류 하는 세 가지 조건: 보통, 기울임꼴 및 오블리크 합니다.

글꼴 스타일 설명
보통 보통 또는 roman 글꼴로 문자는 수직입니다.
기울임꼴 기울임꼴 글꼴의 문자는 실제로 기울어지게 및 설계 된 것으로 표시 합니다.
오블리크 오블리크 글꼴의 문자는 기울어진 인위적으로 합니다. 기울기 보통 글꼴에서 문자에 기울이기 변환을 수행 하 여 이루어집니다. 실제 기울임꼴 글꼴 컴퓨터 또는 프린터 오블리크 스타일을 사용할 수 없는 경우는 보통 글꼴에서 생성 수 있고 여 기울임꼴 글꼴을 시뮬레이션 하는 데 사용 합니다.

열거 값을 사용할 수는 FontStyles 설정 하는 클래스는 FontStyle 구조입니다.

XAML 특성 사용

<object fontStyleProperty="fontStylesValue"/>  

XAML 값

fontStylesValue
FontStyles "Normal", "Italic", "oblique" 등의 값입니다.

메서드

Equals(FontStyle)

FontStyle과 현재 FontStyle 인스턴스가 같은지 비교합니다.

Equals(Object)

Object와 현재 FontStyle 인스턴스가 같은지 비교합니다.

GetHashCode()

이 개체의 해시 코드를 검색합니다.

ToString()

현재 String 개체를 나타내며 FontStyle 속성 정보를 기준으로 하는 CurrentCulture을 만듭니다.

연산자

Equality(FontStyle, FontStyle)

FontStyle의 두 인스턴스를 비교하여 같은지 여부를 확인합니다.

Inequality(FontStyle, FontStyle)

FontStyle의 두 인스턴스를 비교하여 서로 다른지 확인합니다.

명시적 인터페이스 구현

IFormattable.ToString(String, IFormatProvider)

이 멤버에 대한 설명은 ToString(String, IFormatProvider)를 참조하세요.

적용 대상

추가 정보