Endnotes.Add Method 

Returns a Endnote object that represents an endnote added to a range.

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

Usage

Dim Range As Range
Dim Reference As Object
Dim Text As Object
Dim returnValue As Endnote
Dim endnotes1 As Endnotes
returnValue = endnotes1.Add(Range, Reference, Text)

Syntax

Function Add( _
    <InAttribute()> ByVal Range As Range, _
    <InAttribute()> Optional ByRef Reference As Object, _
    <InAttribute()> Optional ByRef Text As Object _
) As Endnote
Endnote Add(
    [In] Range Range, 
    [In, Optional] ref object Reference, 
    [In, Optional] ref object Text
);
public: Endnote^ Add(
    Range^ Range, 
    &Object^ Reference, 
    &Object^ Text
);
public Endnote Add(
    /*in*/Range Range, 
    /*in*/System.Object Reference, 
    /*in*/System.Object Text
);
function Add(
     Range : Range, 
     Reference : Object, 
     Text : Object
) : Endnote;

Parameters

  • Range
    Required Range object. The range marked for the endnote. This can be a collapsed range.
  • Reference
    Optional Object. The text for the custom reference mark. If this argument is omitted, Microsoft Word inserts an automatically-numbered reference mark.
  • Text
    Optional Object. The text of the endnote.

Remarks

To specify a symbol for the Reference argument, use the syntax {FontName CharNum}. FontName is the name of the font that contains the symbol. Names of decorative fonts appear in the Font box in the Symbol dialog box (Insert menu). CharNum is the sum of 31 and the number corresponding to the position of the symbol you want to insert, counting from left to right in the table of symbols. For example, to specify an omega symbol (ω) at position 56 in the table of symbols in the Symbol font, the argument would be "{Symbol 87}".

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

Endnotes Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Endnotes Members