Field.Code Property

Returns a Range object that represents a field's code.

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

Syntax

'Declaration
Default Property Code As Range
    Get
    Set
'Usage
Dim instance As Field
Dim value As Range

value = instance

instance = value
Range this { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.Range

Remarks

A field's code is everything that's enclosed by the field characters ({ }) including the leading space and trailing space characters. You can access a field's code without changing the view from field results.

See Also

Reference

Field Interface

Field Members

Microsoft.Office.Interop.Word Namespace