STK X Send comments on this topic.
Set Method (AgDrawElemLine)
See Also  Example
Left
The x-coordinate of the left edge of this line (in the control's window coordinates).
Top
The y-coordinate of the top edge of this line (in the control's window coordinates).
Right
The x-coordinate of the right edge of this line (in the control's window coordinates).
Bottom
The y-coordinate of the bottom edge of this line (in the control's window coordinates).





Description

Set the rectangle coordinates.

Syntax

[Visual Basic .NET]
Public Sub Set( _
   ByVal Left As Integer, _
   ByVal Top As Integer, _
   ByVal Right As Integer, _
   ByVal Bottom As Integer _
) 

[C#]
public void Set(
int Left,
int Top,
int Right,
int Bottom
);

[Managed C++]
public: void Set(
int Left,
int Top,
int Right,
int Bottom
);

[Java]
public  set(
int Left,
int Top,
int Right,
int Bottom
);

[Unmanaged C++]
public: HRESULT Set(
long Left,
long Top,
long Right,
long Bottom
);

Parameters

Left
The x-coordinate of the left edge of this line (in the control's window coordinates).
Top
The y-coordinate of the top edge of this line (in the control's window coordinates).
Right
The x-coordinate of the right edge of this line (in the control's window coordinates).
Bottom
The y-coordinate of the bottom edge of this line (in the control's window coordinates).

Remarks

The line coordinates are updated, and then the display is updated.

Example

[Visual Basic .NET] Copy Code
Private Sub AxAgUiAxVOCntrl1_MouseMoveEvent( _
                        ByVal sender As Object, _
                        ByVal e As AxAGI.STKX.IAgUiAxVOCntrlEvents_MouseMoveEvent) _
            Handles AxAgUiAxVOCntrl1.MouseMoveEvent

    If pickMode = 2 Then

        If curLine Is Nothing Then

            Dim l As AgDrawElemLine
            l = Me.AxAgUiAxVOCntrl1.DrawElements.Add("Line")

            l.Color = Color.Red

            curLine = l

        End If

        curLine.Set(x0, y0, e.x, e.y)

    End If

End Sub

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1