TableSubstitutionRule.Load

TableSubstitutionRule Load method. Loads table substitution settings from XML file.

Load(string)

Loads table substitution settings from XML file.

public void Load(string fileName)
ParameterTypeDescription
fileNameStringInput file name.

Examples

Shows how to save table substitution rules to file and load them back from the file.

FontSettings fontSettings = new FontSettings();
// Save table substitution rules to file.
fontSettings.SubstitutionSettings.TableSubstitution.Save(ArtifactsDir + "TableSubstitution.xml");

// Rules can be edited in XML file and then loaded back.
// ................

// Load table substitution rules from file.
fontSettings.SubstitutionSettings.TableSubstitution.Load(ArtifactsDir + "TableSubstitution.xml");

See Also


Load(Stream)

Loads table substitution settings from XML stream.

public void Load(Stream stream)
ParameterTypeDescription
streamStreamInput stream.

Examples

Shows how to save table substitution rules to stream and load them back from the stream.

FontSettings fontSettings = new FontSettings();
// Save table substitution rules to stream.
using (Stream tableSubstitutionStream = File.Create(ArtifactsDir + "TableSubstitutionStream.xml"))
    fontSettings.SubstitutionSettings.TableSubstitution.Save(tableSubstitutionStream);

// Rules can be edited in XML file and then loaded back.
// ................

// Load table substitution rules from stream.
using (Stream tableSubstitutionStream = File.OpenRead(ArtifactsDir + "TableSubstitutionStream.xml"))
    fontSettings.SubstitutionSettings.TableSubstitution.Load(tableSubstitutionStream);

See Also