你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FontWeight Class

public final class FontWeight
extends ExpandableStringEnum<FontWeight>

Font weight.

Field Summary

Modifier and Type Field and Description
static final FontWeight BOLD

Characters are represented with thicker strokes.

static final FontWeight NORMAL

Characters are represented normally.

Constructor Summary

Constructor Description
FontWeight()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FontWeight value.

Method Summary

Modifier and Type Method and Description
static FontWeight fromString(String name)

Creates or finds a FontWeight from its string representation.

static Collection<FontWeight> values()

Gets known FontWeight values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BOLD

public static final FontWeight BOLD

Characters are represented with thicker strokes.

NORMAL

public static final FontWeight NORMAL

Characters are represented normally.

Constructor Details

FontWeight

@Deprecated
public FontWeight()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of FontWeight value.

Method Details

fromString

public static FontWeight fromString(String name)

Creates or finds a FontWeight from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding FontWeight.

values

public static Collection values()

Gets known FontWeight values.

Returns:

known FontWeight values.

Applies to