这些属性包括: TextElement.Foreground TextElement.FontFamily TextElement.FontSize TextElement.FontStretch TextElement.FontStyle TextElement.FontWeight 由于它们是附加属性,因此可以在可视树中未定义显式依赖属性(例如 Foreground)的类型上设置它们。