SmartTag.PersistTag Method (Int32, Int32) (2003 System)

Stores information about the smart tag.

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

Syntax

'Declaration
Protected Sub PersistTag ( _
    startIndex As Integer, _
    length As Integer _
)
'Usage
Dim startIndex As Integer
Dim length As Integer

Me.PersistTag(startIndex, length)
protected void PersistTag(
    int startIndex,
    int length
)

Parameters

  • startIndex
    Type: System.Int32
    The position in the paragraph where the smart tag begins.

Exceptions

Exception Condition
InvalidOperationException

PersistTag(Int32, Int32) was not called from Recognize.

Remarks

PersistTag(Int32, Int32) commits the tag being recognized. Call it from the Recognize method to indicate that the smart tag was found in the text.

Permissions

See Also

Reference

SmartTag Class

SmartTag Members

PersistTag Overload

Microsoft.Office.Tools.Word Namespace