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.

Definition

Namespace: MFiles.VAF.Configuration.Domain.Dashboards
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public static XmlDocumentFragment FormatDashboardContentString(
	XmlDocument xml,
	string format,
	params IDashboardContent[] contentItems
)

Parameters

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

Return Value

XmlDocumentFragment

Remarks

This is useful for injecting markup inside text. For instance, a sentence, where one word should be a link.

See Also