Class Replacer

Class Replacer

Le nom : Aspose.Words.LowCode Assemblée: Aspose.Words.dll (25.4.0)

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

public class Replacer : Processor

Inheritance

object Processor Replacer

I membri ereditari

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)

Créer une nouvelle instance du processeur de remplacement.

public static Replacer Create(ReplacerContext context)

Parameters

context ReplacerContext

Returns

Replacer

ExecuteCore()

protected override void ExecuteCore()

Replace(String, String, String et String)

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

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

Parameters

inputFileName string

入力ファイル名

outputFileName string

出力ファイル名

pattern string

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

replacement string

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), chaque page du sortier sera sauvegardée en tant que fichier séparé. Le nom spécifié du fichiers d’échantillonnage sera utilisé pour générer des noms de ficher pour chaque partie suivant la règle: outputFile_partIndex.extension.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que fichier multi-frame.

Replace(string, string, SaveFormat, string, string, 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

Il formato di salvataggio.

pattern string

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

replacement string

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

options FindReplaceOptions

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), chaque page du sortier sera sauvegardée en tant que fichier séparé. Le nom spécifié du fichiers d’échantillonnage sera utilisé pour générer des noms de ficher pour chaque partie suivant la règle: outputFile_partIndex.extension.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que fichier multi-frame.

Replace(string, string, SaveOptions, string, string, 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

Le opzioni di risparmio.

pattern string

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

replacement string

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

options FindReplaceOptions

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), chaque page du sortier sera sauvegardée en tant que fichier séparé. Le nom spécifié du fichiers d’échantillonnage sera utilisé pour générer des noms de ficher pour chaque partie suivant la règle: outputFile_partIndex.extension.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que fichier multi-frame.

Replace(Stream, Stream, SaveFormat, string, string, FindReplaceOptions)

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

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

Parameters

inputStream Stream

入力流。

outputStream Stream

Il flusso di produzione.

saveFormat SaveFormat

Il formato di salvataggio.

pattern string

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

replacement string

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

options FindReplaceOptions

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), seuls la première page du format sera sauvegardée au courant spécifié.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que multi-frame unique à la courante spécifiée.

Replace(Stream, Stream, SaveOptions, string, string, FindReplaceOptions)

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

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

Parameters

inputStream Stream

入力流。

outputStream Stream

Il flusso di produzione.

saveOptions SaveOptions

Le opzioni di risparmio.

pattern string

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

replacement string

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

options FindReplaceOptions

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), seuls la première page du format sera sauvegardée au courant spécifié.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que multi-frame unique à la courante spécifiée.

Replace(Télécharger string, string, regex, string)

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

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

Parameters

inputFileName string

入力ファイル名

outputFileName string

出力ファイル名

pattern Regex

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

replacement string

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), chaque page du sortier sera sauvegardée en tant que fichier séparé. Le nom spécifié du fichiers d’échantillonnage sera utilisé pour générer des noms de ficher pour chaque partie suivant la règle: outputFile_partIndex.extension.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que fichier multi-frame.

Replace(string, string, SaveFormat, Regex, string, 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

Il formato di salvataggio.

pattern Regex

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

replacement string

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

options FindReplaceOptions

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), chaque page du sortier sera sauvegardée en tant que fichier séparé. Le nom spécifié du fichiers d’échantillonnage sera utilisé pour générer des noms de ficher pour chaque partie suivant la règle: outputFile_partIndex.extension.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que fichier multi-frame.

Replace(string, string, SaveOptions, Regex, string, 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

Le opzioni di risparmio.

pattern Regex

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

replacement string

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

options FindReplaceOptions

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), chaque page du sortier sera sauvegardée en tant que fichier séparé. Le nom spécifié du fichiers d’échantillonnage sera utilisé pour générer des noms de ficher pour chaque partie suivant la règle: outputFile_partIndex.extension.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que fichier multi-frame.

Replace(Stream, Stream, SaveFormat, Regex, string, FindReplaceOptions)

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

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

Parameters

inputStream Stream

入力流。

outputStream Stream

Il flusso di produzione.

saveFormat SaveFormat

Il formato di salvataggio.

pattern Regex

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

replacement string

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

options FindReplaceOptions

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), seuls la première page du format sera sauvegardée au courant spécifié.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que multi-frame unique à la courante spécifiée.

Replace(Stream, Stream, SaveOptions, Regex, string, FindReplaceOptions)

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

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

Parameters

inputStream Stream

入力流。

outputStream Stream

Il flusso di produzione.

saveOptions SaveOptions

Le opzioni di risparmio.

pattern Regex

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

replacement string

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

options FindReplaceOptions

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

Returns

int

交代の数は。

Remarks

Si le format de sortie est une image (BMP, EMF, EPS, GIF, JPEG, PNG, ou WebP), seuls la première page du format sera sauvegardée au courant spécifié.

Si le format de sortie est TIFF, les sorties seront sauvegardées en tant que multi-frame unique à la courante spécifiée.

ReplaceToImages(String, ImageSaveOptions, strings, string, FindReplaceoptions)

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

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

Parameters

inputFileName string

入力ファイル名

saveOptions ImageSaveOptions

Le opzioni di risparmio.

pattern string

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

replacement string

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

options FindReplaceOptions

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

Returns

Stream [ ]

ReplaceToImages(Stream, ImageSaveOptions, chaînes, filets, FindReplaceoptions)

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

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

Parameters

inputStream Stream

入力ファイルストリーム

saveOptions ImageSaveOptions

Le opzioni di risparmio.

pattern string

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

replacement string

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

options FindReplaceOptions

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

Returns

Stream [ ]

ReplaceToImages(String, ImageSaveOptions, Regex, string, FindReplaceoptions)

Remplace tous les événements d’un modèle de l’expression régulière spécifié avec un fil de remplacement dans le fichier d’entrée.Render la sortie aux images.

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

Parameters

inputFileName string

入力ファイル名

saveOptions ImageSaveOptions

Le opzioni di risparmio.

pattern Regex

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

replacement string

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

options FindReplaceOptions

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

Returns

Stream [ ]

ReplaceToImages(Stream, ImageSaveOptions, Regex, string, FindReplaceoptions)

Remplace tous les événements d’un modèle de l’expression régulière spécifié avec un fil de remplacement dans le fichier d’entrée.Render la sortie aux images.

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

Parameters

inputStream Stream

入力ファイルストリーム

saveOptions ImageSaveOptions

Le opzioni di risparmio.

pattern Regex

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

replacement string

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

options FindReplaceOptions

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

Returns

Stream [ ]

 Français