STK Vector Geometry ToolSend comments on this topic.
IsTypeSupported Method (IAgCrdnCalcScalarFactory)
See Also
EType
Windows





Windows & Linux

Description

Returns whether the specified type is supported.

Syntax

[Visual Basic .NET]
Public Function IsTypeSupported( _
    ByVal EType As AgECrdnCalcScalarType _
) As Boolean
[C#]
public bool IsTypeSupported(
    AgECrdnCalcScalarType EType
);
[Managed C++]
public: bool IsTypeSupported(
    AgECrdnCalcScalarType EType
);
[Unmanaged C++]
public: HRESULT IsTypeSupported(
    AgECrdnCalcScalarType EType,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool isTypeSupported(
    AgECrdnCalcScalarType EType
);
[Python - STK API ]
def IsTypeSupported(self, EType:"AgECrdnCalcScalarType") -> bool:

Parameters

EType

See Also

Example

Determine if the specified calc scalar type is supported.
[C#]
// Check if the specified calc scalar type is supported.
if (provider.CalcScalars.Factory.IsTypeSupported(calcScalarType))
{
    //Create a CalcScalar with the supported Type
    IAgCrdnCalcScalar calcScalar = provider.CalcScalars.Factory.Create(
        "MyCalcScalar", string.Empty,
        calcScalarType);
}
Determine if the specified calc scalar type is supported.
[Visual Basic .NET]
' Check if the specified calc scalar type is supported.
If provider.CalcScalars.Factory.IsTypeSupported(calcScalarType) Then
	'Create a CalcScalar with the supported Type
	Dim calcScalar As IAgCrdnCalcScalar = provider.CalcScalars.Factory.Create("MyCalcScalar", String.Empty, calcScalarType)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.