Share via


AutoCorrect.ReplacementList Property

Returns the array of AutoCorrect replacements.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property ReplacementList ( _
    Index As Object _
) As Object
    Get
    Set
'Usage
Dim instance As AutoCorrect
Dim Index As Object
Dim value As Object

value = instance.ReplacementList(Index)

instance.ReplacementList(Index) = value
Object this[
    Object Index
] { get; set; }

Parameters

  • Index
    Type: System.Object

    Optional Object. The row index of the array of AutoCorrect replacements to be returned. The row is returned as a one-dimensional array with two elements: The first element is the text in column 1, and the second element is the text in column 2.

Property Value

Type: System.Object

Remarks

If Index is not specified, this method returns a two-dimensional array. Each row in the array contains one replacement, as shown in the following table.

Column

Contents

1

The text to be replaced

2

The replacement text

Use the AddReplacement method to add an entry to the replacement list.

See Also

Reference

AutoCorrect Interface

AutoCorrect Members

Microsoft.Office.Interop.Excel Namespace