STK X Send comments on this topic.
WinID Property (AgUiAx2DCntrl)
See Also  Example
Windows






Windows & Linux

Description

Window identifier (for Connect commands).

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property WinID() As Integer

[C#]
public int WinID {get; set;}

[Managed C++]
public: __property int get_WinID();
public: __property void set_WinID(
int
);

[Unmanaged C++]
public: HRESULT get_WinID(
long * pRetVal
);
public: HRESULT put_WinID(
long NewWinID
);

[Java]
public int getWinID();public void setWinID(
int
);

Remarks

This window identifier can be set only when there is no scenario loaded.

If you set it before loading a scenario and there is a map with the same identifier in the scenario, the control will attach to this map.

You need to use this identifier to refer to this control in Connect commands (for instance use it as the parameter in the Image Connect command).

Example

[Visual Basic .NET] Copy Code
AxAgUiAx2DCntrl1.WinID = 2

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface