STK Vector Geometry ToolSend comments on this topic.
IsTypeSupported Method (IAgCrdnAngleFactory)
See Also
Type
Specify an angle type.
Windows





Windows & Linux

Description

Returns true if the type is supported.

Syntax

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

Parameters

Type
Specify an angle type.

See Also

Example

Determine if the specified angle type is supported.
[C#]
// Check if the specified angle type is supported.
if (provider.Angles.Factory.IsTypeSupported(angleType))
{
    //Create an Angle with the supported Type
    IAgCrdnAngle angle = provider.Angles.Factory.Create(
        "MyAngle", string.Empty,
        angleType);
}
Determine if the specified angle type is supported.
[Visual Basic .NET]
' Check if the specified angle type is supported.
If provider.Angles.Factory.IsTypeSupported(angleType) Then
	'Create an Angle with the supported Type
	Dim angle As IAgCrdnAngle = provider.Angles.Factory.Create("MyAngle", String.Empty, angleType)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.