[]
Gets or sets whether the search is case-sensitive.
This option controls whether Replace(object, object, ReplaceOptions)
matches letter case when searching text. The default value is false.
public bool MatchCase { get; set; }
Public Property MatchCase As Boolean
worksheet.Range["A1:A3"].Value = new object[,] {
{"newyork"},
{"NewYork"},
{"NEWYORK"}
};
ReplaceOptions options = new ReplaceOptions();
options.MatchCase = true;
bool matchCase = options.MatchCase;
worksheet.Range["A1:A3"].Replace("newyork", "Seattle", options);