STK X Send comments on this topic.
IsFeatureAvailable Method (AgSTKXApplication)
See Also  Example
FeatureCode
The feature to be checked.
Windows






Windows & Linux

Description

Returns true if the specified feature is available.

Syntax

[Visual Basic .NET]
Public Function IsFeatureAvailable( _
   ByVal FeatureCode As AgEFeatureCodes _
) As Boolean

[C#]
public bool IsFeatureAvailable(
AgEFeatureCodes FeatureCode
);

[Managed C++]
public: bool IsFeatureAvailable(
AgEFeatureCodes FeatureCode
);

[Java]
public bool isFeatureAvailable(
AgEFeatureCodes FeatureCode
);

[Unmanaged C++]
public: HRESULT IsFeatureAvailable(
AgEFeatureCodes FeatureCode,
VARIANT_BOOL * ReturnValue
);

Parameters

FeatureCode
Member Value Description
eFeatureCodeEngineRuntime 1 The enumeration is used to check whether the engine runtime is available.
eFeatureCodeGlobeControl 2 The enumeration is used to check whether the globe is available.
The feature to be checked.

Example

[Visual Basic .NET] Copy Code
Dim stkxApp As AGI.STKX.AgSTKXApplication
Dim oType As Type = Type.GetTypeFromProgID("STKX11.Application")
stkxApp = Activator.CreateInstance(oType)

If (stkxApp.IsFeatureAvailable(AGI.STKX.AgEFeatureCodes.eFeatureCodeEngineRuntime) = True) Then
      .....
End If

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK Engine for UNIX 11.2