本文整理汇总了VB.NET中System.Windows.Documents.Run.Run构造函数的典型用法代码示例。如果您正苦于以下问题:VB.NET Run构造函数的具体用法?VB.NET Run怎么用?VB.NET Run使用的例子?那么恭喜您, 这里精选的构造函数代码示例或许可以为您提供帮助。
在下文中一共展示了Run构造函数的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: Paragraph
' Create a new, empty paragraph to host the text run.
Dim par As New Paragraph()
' Get a TextPointer for the end of content in the paragraph.
Dim insertionPoint As TextPointer = par.ContentEnd
' This line will create a new text run, initialize it with the supplied string,
' and insert it at the specified insertion point (which happens to be the end of
' content for the host paragraph).
Dim textRun2 As New Run("The text contents of this text run.", insertionPoint)