Skip to main content
A newer version of this page is available. .

TextStyle Members

The storage of text appearance settings.

Constructors

Name Description
TextStyle() Initializes a new TextStyle instance with the default settings.

Fields

Name Description
ColorProperty static Identifies the Color dependency property.
FontAttributesProperty static Identifies the FontAttributes dependency property.
FontFamilyProperty static Identifies the FontFamily dependency property.
FontSizeProperty static Identifies the FontSize dependency property.

Properties

Name Description
Color Gets or sets the color of the text.
FontAttributes Gets or sets whether the text is italic, bold, both, or neither.
FontFamily Gets or sets the name of a font family the style owner uses to display its text.
FontSize Gets or sets the size of the text.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also