语言

TextBlock.Inlines 属性

定义

获取 TextBlock 中的内联文本元素的集合。

public:
 property InlineCollection ^ Inlines { InlineCollection ^ get(); };
InlineCollection Inlines();
public InlineCollection Inlines { get; }
var inlineCollection = textBlock.inlines;
Public ReadOnly Property Inlines As InlineCollection
<TextBlock
  oneOrMoreInlineElements
</TextBlock>

属性值

一个集合,用于保存 TextBlock 中的所有内联文本元素。 默认值为空集合。

适用于