Returns the positions of the highlighted target text in the Translation Edit bar.

Syntax:

GetHighlightedTargetTextPositions( PositionStart As Variant, 
PositionEnd As Variant )
Parameters: PositionStart Start position will be saved here.
PositionEnd End position will be saved here.

Example:
Dim Bar As TranslationEditBar
Set Bar = Application.Windows.TranslationEditBar
  
Dim StartPos, EndPos As Variant
Dim SelectedText As String

SelectedText = Bar.HighlightedTargetText
Call Bar.GetHighlightedTargetTextPositions(StartPos, EndPos)   

Remarks: The "PositionStart" and "PositionEnd" parameters are of the type "Variant." A usage of this method in VBScript is therefore also possible.

See also:

Class TranslationEditBar


Last Updated: 04/27/05