콘텐츠로 이동

TextElement class

이 콘텐츠는 아직 번역되지 않았습니다.

Base class for elements that carry font and foreground text-color properties.

Guide: C# Markup reference: Element

public abstract class TextElement : FrameworkElement
name description
FontFamily { get; set; } Gets or sets the font family; an empty value follows the theme’s font family.
FontSize { get; set; } Gets or sets the font size.
FontStyle { get; set; } Gets or sets the font style, which selects the family’s italic face.
FontWeight { get; set; } Gets or sets the font weight.
Foreground { get; set; } Gets or sets the foreground (text) color.
static readonly FontFamilyProperty The font family; an empty value follows the theme’s font family, and it is inherited by descendants.
static readonly FontSizeProperty The font size; inherited by descendants.
static readonly FontStyleProperty The font style; inherited by descendants.
static readonly FontWeightProperty The font weight; inherited by descendants.
static readonly ForegroundProperty The text color; inherited by descendants.