Class Replacer

Class Replacer

名称: Aspose.Words.LowCode アセンション: Aspose.Words.dll (25.5.0)

文書にテキストを見つけ、置き換える方法を提供します。

public class Replacer : Processor

Inheritance

object Processor Replacer

相続人

Processor.mResultDocument , Processor.From(string, LoadOptions) , Processor.From(Stream, LoadOptions) , Processor.To(string, SaveOptions) , Processor.To(string, SaveFormat) , Processor.To(Stream, SaveOptions) , Processor.To(Stream, SaveFormat) , Processor.To(List, SaveOptions) , Processor.To(List, SaveFormat) , Processor.Execute() , Processor.ExecuteCore() , Processor.CheckArgumentsSet() , Processor.GetPartFileName(string, int, SaveFormat) , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Methods

CheckArgumentsSet()

protected override void CheckArgumentsSet()

Create(ReplacerContext)

代替プロセッサの新しい例を作成します。

public static Replacer Create(ReplacerContext context)

Parameters

context ReplacerContext

Returns

Replacer

ExecuteCore()

protected override void ExecuteCore()

Replace(ストリング、ストリング、ストリング)

指定された文字列パターンのすべての発生を入力ファイルの代替列で置き換える。

public static int Replace(string inputFileName, string outputFileName, string pattern, string replacement)

Parameters

inputFileName string

入力ファイル名

outputFileName string

出力ファイル名

pattern string

置き換えられるシートです。

replacement string

パターンのあらゆる出来事を置き換えるシート。

Returns

int

交代の数は。

Remarks

出力フォーマットが画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を各ページは別々のファイルとして保存されます。 出力フォーマットが TIFF である場合、出力を 1 つの複数フレームの Tiff ファイルとして保存します。

Replace(ストレッチ, ストレッチ, SaveFormat, ストレッチ, ストレッチ, FindReplaceOptions)

指定された文字列パターンのすべての発生を入力ファイルの置き換え列で置き換え、指定された保存形式と追加のオプションで置き換えます。

public static int Replace(string inputFileName, string outputFileName, SaveFormat saveFormat, string pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputFileName string

入力ファイル名

outputFileName string

出力ファイル名

saveFormat SaveFormat

保存形式です。

pattern string

置き換えられるシートです。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

int

交代の数は。

Remarks

出力フォーマットが画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を各ページは別々のファイルとして保存されます。 出力フォーマットが TIFF である場合、出力を 1 つの複数フレームの Tiff ファイルとして保存します。

Replace(ストレッチ, ストレッチ, SaveOptions, ストレッチ, ストレッチ, FindReplaceOptions)

指定された文字列パターンのすべての発生を入力ファイルの置き換え列で置き換え、指定された保存形式と追加のオプションで置き換えます。

public static int Replace(string inputFileName, string outputFileName, SaveOptions saveOptions, string pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputFileName string

入力ファイル名

outputFileName string

出力ファイル名

saveOptions SaveOptions

節約オプション

pattern string

置き換えられるシートです。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

int

交代の数は。

Remarks

出力フォーマットが画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を各ページは別々のファイルとして保存されます。 出力フォーマットが TIFF である場合、出力を 1 つの複数フレームの Tiff ファイルとして保存します。

Replace(ストリーム、ストリーム、SaveFormat、ストリーム、ストリーム、FindReplaceOptions)

指定された文字列パターンのすべての発生を入力ストリームの代替列で置き換え、指定された保存形式と追加のオプションで置き換えます。

public static int Replace(Stream inputStream, Stream outputStream, SaveFormat saveFormat, string pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputStream Stream

入力流。

outputStream Stream

出力流。

saveFormat SaveFormat

保存形式です。

pattern string

置き換えられるシートです。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

int

交代の数は。

Remarks

出力形式が画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を最初のページのみが指定されたストリームに保存されます。 出力フォーマットが TIFF である場合、出力を指定されたストリームに単一の多フレーム TFF として保存します。

Replace(ストリーム, ストリーム, SaveOptions, ストリーム, ストリーム, FindReplaceOptions)

指定された文字列パターンのすべての発生を入力ストリームの代替列で置き換え、指定された保存形式と追加のオプションで置き換えます。

public static int Replace(Stream inputStream, Stream outputStream, SaveOptions saveOptions, string pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputStream Stream

入力流。

outputStream Stream

出力流。

saveOptions SaveOptions

節約オプション

pattern string

置き換えられるシートです。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

int

交代の数は。

Remarks

出力形式が画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を最初のページのみが指定されたストリームに保存されます。 出力フォーマットが TIFF である場合、出力を指定されたストリームに単一の多フレーム TFF として保存します。

Replace(ストリング、ストリング、Regex、ストリング)

特定の文字列パターンのすべての発生を、通常の表現を使用して入力ファイルに置き換え列で置き換える。

public static int Replace(string inputFileName, string outputFileName, Regex pattern, string replacement)

Parameters

inputFileName string

入力ファイル名

outputFileName string

出力ファイル名

pattern Regex

試合を見つけるために使われた定期的な表現パターン。

replacement string

パターンのあらゆる出来事を置き換えるシート。

Returns

int

交代の数は。

Remarks

出力フォーマットが画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を各ページは別々のファイルとして保存されます。 出力フォーマットが TIFF である場合、出力を 1 つの複数フレームの Tiff ファイルとして保存します。

Replace(ストレッチ、ストレッチ、SaveFormat、Regex、ストレッチ、FindReplaceOptions)

指定された文字列パターンのすべての発生を通常の表現を使用して入力ファイルに置き換え列で置き換え、指定された保存形式と追加のオプションで置き換えます。

public static int Replace(string inputFileName, string outputFileName, SaveFormat saveFormat, Regex pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputFileName string

入力ファイル名

outputFileName string

出力ファイル名

saveFormat SaveFormat

保存形式です。

pattern Regex

試合を見つけるために使われた定期的な表現パターン。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

int

交代の数は。

Remarks

出力フォーマットが画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を各ページは別々のファイルとして保存されます。 出力フォーマットが TIFF である場合、出力を 1 つの複数フレームの Tiff ファイルとして保存します。

Replace(ストレッチ, ストレッチ, SaveOptions, Regex, ストレッチ, FindReplaceOptions)

指定された文字列パターンのすべての発生を通常の表現を使用して入力ファイルに置き換え列で置き換え、指定された保存形式と追加のオプションで置き換えます。

public static int Replace(string inputFileName, string outputFileName, SaveOptions saveOptions, Regex pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputFileName string

入力ファイル名

outputFileName string

出力ファイル名

saveOptions SaveOptions

節約オプション

pattern Regex

試合を見つけるために使われた定期的な表現パターン。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

int

交代の数は。

Remarks

出力フォーマットが画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を各ページは別々のファイルとして保存されます。 出力フォーマットが TIFF である場合、出力を 1 つの複数フレームの Tiff ファイルとして保存します。

Replace(ストリーム、ストリーム、SaveFormat、Regex、ストリーム、FindReplaceOptions)

通常の表現を使用して入力ストリームの代替ストリームで指定されたキャラクターストリームパターンのすべての発生を置き換え、指定された保存フォーマットと追加のオプションを使用します。

public static int Replace(Stream inputStream, Stream outputStream, SaveFormat saveFormat, Regex pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputStream Stream

入力流。

outputStream Stream

出力流。

saveFormat SaveFormat

保存形式です。

pattern Regex

試合を見つけるために使われた定期的な表現パターン。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

int

交代の数は。

Remarks

出力形式が画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を最初のページのみが指定されたストリームに保存されます。 出力フォーマットが TIFF である場合、出力を指定されたストリームに単一の多フレーム TFF として保存します。

Replace(ストリーム、ストリーム、SaveOptions、Regex、ストリーム、FindReplaceOptions)

通常の表現を使用して入力ストリームの代替ストリームで指定されたキャラクターストリームパターンのすべての発生を置き換え、指定された保存フォーマットと追加のオプションを使用します。

public static int Replace(Stream inputStream, Stream outputStream, SaveOptions saveOptions, Regex pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputStream Stream

入力流。

outputStream Stream

出力流。

saveOptions SaveOptions

節約オプション

pattern Regex

試合を見つけるために使われた定期的な表現パターン。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

int

交代の数は。

Remarks

出力形式が画像(BMP、EMF、EPS、GIF、JPEG、PNG、またはWebP)である場合、出力を最初のページのみが指定されたストリームに保存されます。 出力フォーマットが TIFF である場合、出力を指定されたストリームに単一の多フレーム TFF として保存します。

ReplaceToImages(ストレッチ, ImageSaveOptions, シールド, String, FindReplace Options)

指定された文字列パターンのすべての発生を入力ファイルの代替列で置き換える。画像への出力をレンダーします。

public static Stream[] ReplaceToImages(string inputFileName, ImageSaveOptions saveOptions, string pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputFileName string

入力ファイル名

saveOptions ImageSaveOptions

節約オプション

pattern string

置き換えられるシートです。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

Stream ( )

ReplaceToImages(ストリーム, ImageSaveOptions, シート, string, FindReplace Options)

指定された文字列パターンのすべての発生を入力ファイルの代替列で置き換える。画像への出力をレンダーします。

public static Stream[] ReplaceToImages(Stream inputStream, ImageSaveOptions saveOptions, string pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputStream Stream

入力ファイルストリーム

saveOptions ImageSaveOptions

節約オプション

pattern string

置き換えられるシートです。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

Stream ( )

ReplaceToImages(ストレッチ, ImageSaveOptions, Regex, シート, FindReplaceOption)

指定された定期的な表現パターンのすべての発生を、入力ファイルに置き換え列で交換します。画像への出力をレンダーします。

public static Stream[] ReplaceToImages(string inputFileName, ImageSaveOptions saveOptions, Regex pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputFileName string

入力ファイル名

saveOptions ImageSaveOptions

節約オプション

pattern Regex

試合を見つけるために使われた定期的な表現パターン。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

Stream ( )

ReplaceToImages(Stream, ImageSaveOptions, Regex, ストリーム, FindReplaceオプション)

指定された定期的な表現パターンのすべての発生を、入力ファイルに置き換え列で交換します。画像への出力をレンダーします。

public static Stream[] ReplaceToImages(Stream inputStream, ImageSaveOptions saveOptions, Regex pattern, string replacement, FindReplaceOptions options = null)

Parameters

inputStream Stream

入力ファイルストリーム

saveOptions ImageSaveOptions

節約オプション

pattern Regex

試合を見つけるために使われた定期的な表現パターン。

replacement string

パターンのあらゆる出来事を置き換えるシート。

options FindReplaceOptions

Aspose.Words.Replacing.FindReplaceOptionsは、追加のオプションを指定することに反対します。

Returns

Stream ( )

 日本語