Share via


Field.Data Property 

Returns or sets data in an ADDIN field.

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

Usage

Dim field1 As Field

Dim returnValue As String
returnValue = field1.Data

Dim sampleValue As String
field1.Data = sampleValue

Syntax

Property Data() As String
string Data {get; set;}
property String^ Data{
    String^ get();
    Void set(String^);
}
public System.String get_Data();
public void set_Data(System.String);
function get Data() : String;
function set Data(String);

Remarks

The data is not visible in the field code or result; it is only accessible by returning the value of the Data property. If the field isn't an ADDIN field, this property will cause an error.

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

Field Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Field Members