Range.ID Property 

Returns or sets the identifying label for the specified object when the current document is saved as a Web page.

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

Usage

Dim range1 As Range

Dim returnValue As String
returnValue = range1.ID

Dim sampleValue As String
range1.ID = sampleValue

Syntax

Property ID() As String
string ID {get; set;}
property String^ ID{
    String^ get();
    Void set(String^);
}
public System.String get_ID();
public void set_ID(System.String);
function get ID() : String;
function set ID(String);

Remarks

With the exception of the Editor object, you can use a label as a hyperlink reference from other Web pages or from within the current document.

Microsoft Word does not store the ID property setting for a Range object. If you set the ID property and then return its value, the returned value will be an empty String.

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

Range Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Range Members