Options.ReplaceSelection Property 

True if the result of typing or pasting replaces the selection. False if the result of typing or pasting is added before the selection, leaving the selection intact.

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

Usage

Dim options1 As Options

Dim returnValue As Boolean
returnValue = options1.ReplaceSelection

Dim sampleValue As Boolean
options1.ReplaceSelection = sampleValue

Syntax

Property ReplaceSelection() As Boolean
bool ReplaceSelection {get; set;}
property Boolean ReplaceSelection{
    Boolean get();
    Void set(Boolean);
}
public boolean get_ReplaceSelection();
public void set_ReplaceSelection(boolean);
function get ReplaceSelection() : Boolean;
function set ReplaceSelection(Boolean);

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

Options Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Options Members