_Document.GetCrossReferenceItems Method 

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

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

Usage

Dim ReferenceType As Object
Dim returnValue As Object
Dim _Document1 As _Document
returnValue = _Document1.GetCrossReferenceItems(ReferenceType)

Syntax

Function GetCrossReferenceItems( _
    <InAttribute()> ByRef ReferenceType As Object _
) As Object
object GetCrossReferenceItems(
    [In] ref object ReferenceType
);
public: Object^ GetCrossReferenceItems(
    &Object^ ReferenceType
);
public System.Object GetCrossReferenceItems(
    /*in*/System.Object ReferenceType
);
function GetCrossReferenceItems(
     ReferenceType : Object
) : Object;

Parameters

  • ReferenceType
    Required Object. The type of item you want to insert a cross-reference to. WdReferenceType.

Remarks

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

An item returned by this method can be used as the ReferenceWhich argument for the InsertCrossReference method of a Range or Selection object.

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

_Document Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

_Document Members