다음을 통해 공유


FontSettings Class

Definition

FontSettings allows certain properties on a FontStyleSetInfo to be marked as overridden or immutable. If certain Font settings are marked as immutable, then they are not allowed to be changed again.

public ref class FontSettings
public class FontSettings
type FontSettings = class
Public Class FontSettings
Inheritance
FontSettings

Constructors

FontSettings()

Default constructor.

Properties

Bold

Gets or sets the font's bold style. Only allows the change if the property is not immutable and sets the override flags appropriately.

FontSettingsFlags

Gets the overridden properties in the FontStyleSetInfo.

FontStyleSetInfo

Gets or sets the FontStyleSetInfo associated with these settings.

ImmutableName

Makes the Name setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.

ImmutableSize

Makes the Size setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.

ImmutableStyle

Makes the Style setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.

Italic

Gets or sets the font's italic style. Only allows the change if the property is not immutable and sets the override flags appropriately.

Name

Gets or sets the name of the FontFamily object. Only allows the change if the property is not immutable and sets the override flags appropriately.

Regular

Gets or sets the font's regular style. Only allows the change if the property is not immutable and the value is true. To set a Font to be non-Regular, one must use any of the Bold, Italic, or Style properties.

Size

Gets or sets the size of the font in world units (inches). A point is 1/72nd of an inch. Only allows the change if the property is not immutable and sets the override flags appropriately.

Strikeout

Gets or sets the font's strikeout style. Only allows the change if the property is not immutable and sets the override flags appropriately.

Style

Gets or sets the font's bold, italic, strikeout, and underline styles. Only allows the change if the property is not immutable and sets the override flags appropriately.

Underline

Gets or sets the font's underline style. Only allows the change if the property is not immutable and sets the override flags appropriately.

Methods

IsOverridden(FontSettingsFlags)

Tests whether certain PenSettings are overridden.

Applies to