STK XSend 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
MemberValueDescription
eFeatureCodeEngineRuntime1The enumeration is used to check whether the engine runtime is available.
eFeatureCodeGlobeControl2The 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

© 2018 Analytical Graphics, Inc. All Rights Reserved.