Class ReplacerContext
Tên không gian: Aspose.Words.LowCode Tổng hợp: Aspose.Words.dll (25.4.0)
Tìm / thay thế bối cảnh hoạt động.
public class ReplacerContext : ProcessorContext
Inheritance
object ← ProcessorContext ← ReplacerContext
Thành viên thừa kế
ProcessorContext.WarningCallback , ProcessorContext.FontSettings , ProcessorContext.LayoutOptions , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
ReplacerContext()
public ReplacerContext()
Properties
FindReplaceOptions
Tìm / thay thế các tùy chọn.
public FindReplaceOptions FindReplaceOptions { get; }
Giá trị bất động sản
Methods
SetReplacement(Thẻ, string)
Thiết lập mô hình và thay thế được sử dụng bằng việc tìm/thay thế hoạt động.
public void SetReplacement(string pattern, string replacement)
Parameters
pattern
string
replacement
string
Remarks
Sử dụng phương pháp này vượt quá mô hình đặt trước và thay thế.
SetReplacement(Lời bài hát: String)
Thiết lập mô hình và thay thế được sử dụng bằng việc tìm/thay thế hoạt động.
public void SetReplacement(Regex pattern, string replacement)
Parameters
pattern
Regex
replacement
string
Remarks
Sử dụng phương pháp này vượt quá mô hình đặt trước và thay thế.