VGetSearchWIn Method
Description
Retrieves search window coordinates.
Syntax
Sub VGetSearchWin (Sequence As String, Object As String, ByRef Left As Integer,
ByRef Top As Integer, ByRef Width As Integer, ByRef 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 variable indicating the left coordinate in pixels. - Top
An integer variable indicating the top coordinate in pixels. - Width
An integer variable indicating the width in pixels. - Height
An integer variable indicating the height in pixels.
See Also
VGetModelWin Method, VSetModelWin Method, VSetSearchWIn Method
VGetSearchWin 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", newLeft, top,
width, height);
m_spel.VRun("testSeq");