Topic Transformation CoreLoad Template File Method
Load a template file and perform any necessary substitution tag replacements
Definition
Namespace: Sandcastle.Core.PresentationStyle.Transformation
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
A copy of the template XML document with the substitution tags replaced with the given text
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static XDocument LoadTemplateFile(
string templateFilePath,
IEnumerable<(string Key, string Value)> replacementTags
)VB
Public Shared Function LoadTemplateFile (
templateFilePath As String,
replacementTags As IEnumerable(Of (Key As String, Value As String))
) As XDocumentC++
public:
static XDocument^ LoadTemplateFile(
String^ templateFilePath,
IEnumerable<ValueTuple<String^, String^>>^ replacementTags
)F#
static member LoadTemplateFile :
templateFilePath : string *
replacementTags : IEnumerable<ValueTuple<string, string>> -> XDocument Parameters
- templateFilePath String
- The template file to load
- replacementTags IEnumerableValueTupleString, String
- An optional enumerable list of tuples containing the substitution tag names and replacement values.
Return Value
XDocumentA copy of the template XML document with the substitution tags replaced with the given text