DashboardHelperFormatDashboardContentString Method
In a fashion similar to String.Format() this takes a formatted string with
positional placeholders, and replaces them with content generated from the
IDashboardContent item at the corresponding position.
Namespace: MFiles.VAF.Configuration.Domain.DashboardsAssembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
public static XmlDocumentFragment FormatDashboardContentString(
XmlDocument xml,
string format,
params IDashboardContent[] contentItems
)
- xml XmlDocument
- The xml document to which the resutling fragment will be added.
- format String
- The format string.
- contentItems IDashboardContent
- The items whose content will replace the format string's placeholders
XmlDocumentFragment
This is useful for injecting markup inside text. For instance, a sentence,
where one word should be a link.