Replacement Replacement Replacement Interface


Represents the replace criteria for a find-and-replace operation.

public interface class Replacement
public interface Replacement
Public Interface Replacement


The properties and methods of the Replacement object correspond to the options in the Find and Replace dialog box.

Use the Replacement property to return a Replacement object.

To find and replace formatting, set both the find text and the replace text to empty strings ("") and set the Format argument of the Execute(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) method to True.


Application Application Application

Returns a Application object that represents the Microsoft Word application.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Font Font Font

Returns or sets a Font object that represents the character formatting of the specified object.

Frame Frame Frame

Returns a Frame object that represents the frame formatting for the specified style or find-and-replace operation.

Highlight Highlight Highlight

True if highlight formatting is applied to the replacement text. Can return or be set to True, False, or wdUndefined.

LanguageID LanguageID LanguageID

Returns or sets the language for the specified object.

LanguageIDFarEast LanguageIDFarEast LanguageIDFarEast

Returns or sets an East Asian language for the specified object.

NoProofing NoProofing NoProofing

True if Microsoft Word finds or replaces text that the spelling and grammar checker ignores.

ParagraphFormat ParagraphFormat ParagraphFormat

Returns or sets a ParagraphFormat object that represents the paragraph settings for the specified replacement operation.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

Style Style Style

Returns or sets the style for the specified object.

Text Text Text

Returns or sets the text to find or replace in the specified range or selection.


ClearFormatting() ClearFormatting() ClearFormatting()

Removes text and paragraph formatting from a selection or from the formatting specified in a find or replace operation.

Applies to