VSetSearchWIn Method

Description
Sets search window coordinates.

Syntax
Sub VSetSearchWin ( Sequence As String, Object As String, Left As Integer, Top As Integer, Width As Integer, Height As Integer )

Parameters

  • Sequence
    A string expression indicating the vision sequence name for the current project.
  • Object
    A string expression indicating the object name for the sequence.
  • Left
    An integer expression indicating the left coordinate in pixels.
  • Top
    An integer expression indicating the top coordinate in pixels.
  • Width
    An integer expression indicating the width in pixels.
  • Height
    An integer expression indicating the height in pixels.

See Also
VGetModelWin Method, VSetModelWin Method, VGetSearchWIn Method

VSetSearchWin Example
VB Example:

Dim left As Integer, top As Integer  
Dim width As Integer, height As Integer  
  
With m_spel  
  .VGetSearchWin("testSeq", "corr01", left, top, _   
    width, height)  
  .VSetSearchWin("testSeq", "corr01", newLeft, top, _   
    width, height)  
  .VRun("testSeq")  
End With  

C# Example:

int left, top, width, height;  
  
m_spel.VGetSearchWin("testSeq", "corr01", out left, out top,   
    out width, out height);  
m_spel. .VSetSearchWin("testSeq", "corr01", left + 50,  
    top, width, height);  
m_spel.VRun("testSeq");