FindReplaceOptionsPreserveMetaCharacters Property

True indicates that meta-characters beginning with "&" are preserved. Default value is false.

Namespace:  Aspose.Words.Replacing
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool PreserveMetaCharacters { get; set; }

Property Value

Type: Boolean
Examples
Shows how to preserved meta-characters that begin with "&".
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("one");
builder.Writeln("two");
builder.Writeln("three");

FindReplaceOptions options = new FindReplaceOptions();
options.FindWholeWordsOnly = true;
options.PreserveMetaCharacters = true;

doc.Range.Replace("two", "“ four ”", options);
See Also