[]
Gets or sets whether replacement matches double-byte characters only.
If this property is true, double-byte characters match only double-byte characters.
If this property is false, double-byte characters can match their single-byte
equivalents.
Use MatchByte to change this setting for Replace(object, object, ReplaceOptions) operations.
public bool MatchByte { get; set; }
Public Property MatchByte As Boolean
worksheet.Range["A1:A2"].Value = new object[,] {
{"A"},
{"A"}
};
ReplaceOptions options = new ReplaceOptions();
options.MatchByte = true;
bool matchByte = options.MatchByte;
worksheet.Range["A1:A2"].Replace("A", "B", options);