Summary
Defines a set of predefined font weights.
- Namespace
- Avalonia
.Media - Interfaces
-
- IComparable
- IFormattable
- IConvertible
- Base Types
-
- object
- ValueType
- Enum
graph BT
Type-->Base0["Enum"]
Base0-->Base1["ValueType"]
Base1-->Base2["object"]
Type-.->Interface0["IComparable"]
Type-.->Interface1["IFormattable"]
Type-.->Interface2["IConvertible"]
Type["FontWeight"]
class Type type-node
Syntax
public enum FontWeight
Remarks
As well as the values defined by this enumeration you can also pass any integer value by
casting it to
FontWeight
, e.g. (FontWeight)550
.
Fields
Name | Constant Value | Summary |
---|---|---|
Black | 900 |
Specifies a "black" font weight.
static
|
Bold | 700 |
Specifies a "bold" font weight.
static
|
DemiBold | 600 |
Specifies a "demi-bold" font weight.
static
|
ExtraBlack | 950 |
Specifies an "extra black" font weight.
static
|
ExtraBold | 800 |
Specifies an "extra bold" font weight.
static
|
ExtraLight | 200 |
Specifies an "extra light" font weight.
static
|
Heavy | 900 |
Specifies a "heavy" font weight.
static
|
Light | 300 |
Specifies a "light" font weight.
static
|
Medium | 500 |
Specifies a "medium" font weight.
static
|
Normal | 400 |
Specifies a "normal" font weight.
static
|
Regular | 400 |
Specifies a "regular" font weight.
static
|
SemiBold | 600 |
Specifies a "semi-bold" font weight.
static
|
SemiLight | 350 |
Specifies a "semi light" font weight.
static
|
Thin | 100 |
Specifies a "thin" font weight.
static
|
UltraBlack | 950 |
Specifies an "ultra black" font weight.
static
|
UltraBold | 800 |
Specifies an "ultra bold" font weight.
static
|
UltraLight | 200 |
Specifies an "ultra light" font weight.
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
HasAllFlags |
bool |
From EnumExtensions
|
HasAnyFlag |
bool |
From EnumExtensions
|
HasFlagCustom |
bool |
From EnumExtensions
|