VSetModelWin Method

Description
Sets model window coordinates.

Syntax
Sub VSetModelWin ( 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, VGetSearchWIn Method, VSetSearchWIn Method

VSetModelWin 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");