_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)
Syntax
'Declaration
Function GetCrossReferenceItems ( _
ByRef ReferenceType As Object _
) As Object
'Usage
Dim instance As _Document
Dim ReferenceType As Object
Dim returnValue As Object
returnValue = instance.GetCrossReferenceItems(ReferenceType)
Object GetCrossReferenceItems(
ref Object ReferenceType
)
Parameters
- ReferenceType
Type: System.Object%
Required Object. The type of item you want to insert a cross-reference to. WdReferenceType.
Return Value
Type: System.Object
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.