TextBlock.Inlines 属性

定义

获取包含顶级 Inline 元素的 InlineCollection,前者构成 TextBlock 的内容。Gets an InlineCollection containing the top-level Inline elements that comprise the contents of the TextBlock.

public:
 property System::Windows::Documents::InlineCollection ^ Inlines { System::Windows::Documents::InlineCollection ^ get(); };
public System.Windows.Documents.InlineCollection Inlines { get; }
member this.Inlines : System.Windows.Documents.InlineCollection
Public ReadOnly Property Inlines As InlineCollection

属性值

包含 Inline 元素的 InlineCollection,前者构成 TextBlock 的内容。An InlineCollection containing the Inline elements that comprise the contents of the TextBlock.

注解

使用此属性返回的 InlineCollection 来枚举或操作 TextBlock的内容。Use the InlineCollection returned by this property to enumerate or manipulate the contents of a TextBlock.

适用于