다음을 통해 공유


Document.GetCrossReferenceItems Method

Gets an array of items that can be cross-referenced based on the specified cross-reference type.

Namespace:  Microsoft.Office.Tools.Word
Assemblies:   Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Function GetCrossReferenceItems ( _
    ByRef ReferenceType As Object _
) As Object
Object GetCrossReferenceItems(
    ref Object ReferenceType
)

Parameters

  • ReferenceType
    Type: System.Object%

    One of the WdReferenceType values that specifies the type of item you want to insert a cross-reference to.

Return Value

Type: System.Object
An array of items that can be cross-referenced based on the specified cross-reference type.

Remarks

The array corresponds to the items listed in the For which box in the Cross-reference dialog box.

An item returned by this method can be used as the ReferenceWhich argument for the InsertCrossReference method.

.NET Framework Security

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace