FontWeight 구조체
정의
스트로크의 두께를 통해 서체의 밀도를 나타냅니다.Refers to the density of a typeface, in terms of the lightness or heaviness of the strokes.
public value class FontWeight : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.FontWeightConverter))]
[System.Windows.Localizability(System.Windows.LocalizationCategory.None)]
public struct FontWeight : IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.FontWeightConverter))>]
[<System.Windows.Localizability(System.Windows.LocalizationCategory.None)>]
type FontWeight = struct
interface IFormattable
Public Structure FontWeight
Implements IFormattable
- 상속
- 특성
- 구현
예제
다음 코드 예제에서는 FontWeight "UltraBold"로 설정 됩니다.In the following code example, the FontWeight is set to "UltraBold".
<TextBlock FontWeight="UltraBold" FontFamily="Gil Sans MT">Hello, world</TextBlock>
설명
일반적으로 스트로크 또는 두께 지정 된 문자를 동일한 서체의 "normal" 문자를 비교 하 여 서체로 연결 된 가중치를 차별화 합니다.Weight differences are generally differentiated by an increased stroke or thickness that is associated with a given character in a typeface, as compared to a "normal" character from that same typeface.
참고 일부 가중치 모든 서체에 대 한 사용할 수 있습니다.Note Not all weights are available for all typefaces. 가중치 서체에 사용할 수 없는 경우 가장 가까운 일치 하는 가중치 반환 됩니다.When a weight is not available for a typeface, the closest matching weight is returned.
XAML 특성 사용XAML Attribute Usage
<object fontWeightProperty="fontWeightsValue"/>
XAML 값XAML Values
fontWeightsValuefontWeightsValue
FontWeights "Light", "Normal" 또는 "UltraBold" 등의 속성 이름입니다.A FontWeights property name, such as "Light", "Normal", or "UltraBold".
메서드
Compare(FontWeight, FontWeight) |
FontWeight의 두 인스턴스를 비교합니다.Compares two instances of FontWeight. |
Equals(FontWeight) |
현재 FontWeight 개체가 지정된 FontWeight 개체와 같은지 확인합니다.Determines whether the current FontWeight object is equal to a specified FontWeight object. |
Equals(Object) |
현재 FontWeight 개체가 지정된 개체와 같은지 확인합니다.Determines whether the current FontWeight object is equal to a specified object. |
FromOpenTypeWeight(Int32) |
FontWeightOpenType |
GetHashCode() |
이 개체의 해시 코드를 검색합니다.Retrieves the hash code for this object. |
ToOpenTypeWeight() |
개체에 대 한 OpenType |
ToString() |
FontWeight 속성 정보에 따라 CurrentCulture 개체의 값을 나타내는 텍스트 문자열을 반환합니다.Returns a text string that represents the value of the FontWeight object and is based on the CurrentCulture property information. |
연산자
Equality(FontWeight, FontWeight) |
FontWeight의 두 인스턴스를 비교하여 같은지 여부를 확인합니다.Compares two instances of FontWeight for equality. |
GreaterThan(FontWeight, FontWeight) |
FontWeight의 두 인스턴스를 비교하여 인스턴스 중 하나가 다른 하나보다 큰지 확인합니다.Evaluates two instances of FontWeight to determine whether one instance is greater than the other. |
GreaterThanOrEqual(FontWeight, FontWeight) |
FontWeight의 두 인스턴스를 비교하여 인스턴스 중 하나가 다른 하나보다 크거나 같은지 확인합니다.Evaluates two instances of FontWeight to determine whether one instance is greater than or equal to the other. |
Inequality(FontWeight, FontWeight) |
FontWeight의 두 인스턴스를 비교하여 서로 다른지 확인합니다.Evaluates two instances of FontWeight to determine inequality. |
LessThan(FontWeight, FontWeight) |
FontWeight의 두 인스턴스를 비교하여 인스턴스 중 하나가 다른 하나보다 작은지 확인합니다.Evaluates two instances of FontWeight to determine whether one instance is less than the other. |
LessThanOrEqual(FontWeight, FontWeight) |
FontWeight의 두 인스턴스를 비교하여 인스턴스 중 하나가 다른 하나보다 작거나 같은지 확인합니다.Evaluates two instances of FontWeight to determine whether one instance is less than or equal to the other. |
명시적 인터페이스 구현
IFormattable.ToString(String, IFormatProvider) |
이 멤버에 대한 설명은 ToString(String, IFormatProvider)를 참조하세요.For a description of this member, see ToString(String, IFormatProvider). |