編輯

共用方式為


Replacement Interface

Definition

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

public interface class Replacement
[System.Runtime.InteropServices.Guid("000209B1-0000-0000-C000-000000000046")]
public interface Replacement
type Replacement = interface
Public Interface Replacement
Attributes

Remarks

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.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Creator

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

Font

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

Frame

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

Highlight

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

LanguageID

Returns or sets the language for the specified object.

LanguageIDFarEast

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

NoProofing

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

ParagraphFormat

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

Parent

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

Style

Returns or sets the style for the specified object.

Text

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

Methods

ClearFormatting()

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

Applies to