Description
A unique identifier associated with the
window that can be used with Connect to control the 3D globe.
Property type
Read-only property
Syntax
[Visual Basic .NET] |
Public Property SceneID() As Integer
|
[C#] |
public int SceneID {get;}
|
[Managed C++] |
public: __property int get_SceneID();
|
[Unmanaged C++] |
public: HRESULT get_SceneID(
long * pRetVal
);
|
[Java] |
public int getSceneID();
|
Example
Enumerate all 3D
(Globe) windows and print their scene identifiers.
[C#] |
Copy Code
|
foreach (IAgUiWindow window in application.Windows)
{
object oSvc = window.GetServiceByType(AgEWindowService.eWindowService3DWindow);
IAgUiWindowGlobeObject globeObject = oSvc as IAgUiWindowGlobeObject;
if (globeObject != null)
{
Console.WriteLine("Window Title: {0}, scene ID: {1}", window.Caption, globeObject.SceneID);
}
}
|
|
Enumerate all 3D
(Globe) windows and print their scene identifiers.
[C#] |
Copy Code
|
foreach (IAgUiWindow window in application.Windows)
{
object oSvc = window.GetServiceByName("Globe");
IAgUiWindowGlobeObject globeObject = oSvc as IAgUiWindowGlobeObject;
if (globeObject != null)
{
Console.WriteLine("Window Title: {0}, scene ID: {1}", window.Caption, globeObject.SceneID);
}
}
|
|
Enumerate all 3D
(Globe) windows and print their scene identifiers.
[Visual Basic .NET] |
Copy Code
|
For Each window
As IAgUiWindow In application.Windows
Dim oSvc
As Object
=
window.GetServiceByType(AgEWindowService.eWindowService3DWindow)
Dim
globeObject As IAgUiWindowGlobeObject
= TryCast(oSvc, IAgUiWindowGlobeObject)
If globeObject
IsNot Nothing Then
Console.WriteLine("Window
Title: {0}, scene ID: {1}", window.Caption,
globeObject.SceneID)
End
If
Next
|
|
Enumerate all 3D
(Globe) windows and print their scene identifiers.
[Visual Basic .NET] |
Copy Code
|
For Each window
As IAgUiWindow In application.Windows
Dim oSvc
As Object
= window.GetServiceByName("Globe")
Dim
globeObject As IAgUiWindowGlobeObject
= TryCast(oSvc, IAgUiWindowGlobeObject)
If globeObject
IsNot Nothing Then
Console.WriteLine("Window
Title: {0}, scene ID: {1}", window.Caption,
globeObject.SceneID)
End
If
Next
|
|
See Also