TextBlock Constructor (Inline)
.NET Framework (current version)
Initializes a new instance of the TextBlock class, adding a specified Inline element as the initial display content.
PresentationFramework (in PresentationFramework.dll)
Public Sub New (
inline As Inline
The following example demonstrates the use of this constructor. In this case, the TextBlock contains a text Run.
Dim txtBlock As New TextBlock(New Run("A bit of text content..."))
Return to top
Available since 3.0