콘텐츠로 이동

TextBlockBase class

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

Shared text layout and rendering base for text elements. Carries alignment, wrapping and trimming, owns the font and formatted-text layout, and renders DisplayText. Subclasses decide what the displayed string is: TextBlock exposes it as Text, while AccessText derives it from raw mnemonic markup.

Guide: C# Markup reference: Element

public abstract class TextBlockBase : TextElement
name description
LineBoxTrim { get; set; } Gets or sets cap-height trimming of the outer line boxes; ink may paint outside the trimmed bounds.
LineSpacing { get; set; } Gets or sets the extra gap between lines (in DIPs); 0 keeps the natural leading and negative values tighten.
TextAlignment { get; set; } Gets or sets the horizontal text alignment.
TextTrimming { get; set; } Gets or sets the text trimming mode.
TextWrapping { get; set; } Gets or sets the text wrapping mode.
VerticalTextAlignment { get; set; } Gets or sets the vertical text alignment.
static readonly LineBoxTrimProperty
static readonly LineSpacingProperty
static readonly TextAlignmentProperty
static readonly TextTrimmingProperty
static readonly TextWrappingProperty
static readonly VerticalTextAlignmentProperty