Method wpfBuilder.formatTextOf
Overload
Adds inlines (text, formatted text, hyperlinks, images, etc) to the specified System.Windows.Controls.TextBlock etc.
public static void formatTextOf(object obj, wpfBuilder.InterpolatedString text)
Parameters
|
obj (object)
Object of type System.Windows.Controls.TextBlock, ContentControl or InlineCollection. More info in wpfBuilder.FormatText remarks. |
|
text (wpfBuilder.InterpolatedString)
Interpolated string (like These tags add inlines of these types:
Tags can have these attributes, like
WPF elements of these types can be inserted without tags:
XML special characters must be escaped:
The |
Exceptions
|
NotSupportedException
Unsupported obj type or non-empty Content/Header. |
|
ArgumentException
Unknown |
|
InvalidOperationException
The same |
|
FormatException
Invalid color attribute. |
|
Exception
Exceptions of System.Xml.Linq.XElement.Parse. |