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 中所有内联文本元素的集合。 默认值为空集合。

适用于