Replacement.ClearFormatting Method 

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

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim replacement1 As Replacement
replacement1.ClearFormatting()

Syntax

Sub ClearFormatting()
void ClearFormatting();
public: Void ClearFormatting();
public void ClearFormatting();
function ClearFormatting();

Remarks

To ensure that formatting isn't included as criteria in a find or replace operation, use this method before carrying out the operation.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Replacement Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Replacement Members