Share via


Bookmark.End Property

Returns or sets the ending character position of a bookmark.

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

Syntax

'Declaration
Property End As Integer
    Get
    Set
'Usage
Dim instance As Bookmark
Dim value As Integer

value = instance.End

instance.End = value
int End { get; set; }

Property Value

Type: System.Int32

Remarks

The Bookmark object has a starting position and an ending position. The ending position is the point farthest away from the beginning of the story.

This property returns the ending character position relative to the beginning of the story. The main document story (wdMainTextStory) begins with character position 0 (zero). You can change the size of a bookmark by setting this property.

If this property is set to a value smaller than the Start property, the Start property is set to the same value (that is, the Start and End property are equal).

See Also

Reference

Bookmark Interface

Bookmark Members

Microsoft.Office.Interop.Word Namespace