VGetModelWin Method
Description
Retrieves model window coordinates for objects.
Syntax
Sub VGetModelWin (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
VSetModelWin Method, VGetSearchWIn Method, VSetSearchWIn Method
VGetModelWin Example
VB Example:
Dim left As Integer, top As Integer
Dim width As Integer, height As Integer
With m_spel
.VGetModelWin("testSeq", "corr01", left, top, _
width, height)
.VSetModelWin("testSeq", "corr01", left + 20, top, _
width, height)
.VTeach("testSeq", "corr01")
End With
C# Example:
int left, top, width, height;
m_spel.VGetModelWin("testSeq", "corr01", out left, out top,
out width, out height);
m_spel.VSetModelWin("testSeq", "corr01", left + 20, top,
width, height);
m_spel.VTeach("testSeq", "corr01");