TextBlock.Inlines Property

Definition

获取包含顶级 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

Property Value

InlineCollection

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

Remarks

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

Applies to