STK Vector Geometry ToolSend comments on this topic.
IsTypeSupported Method (IAgCrdnVectorFactory)
See Also
Type
Specify a vector type.
Windows





Windows & Linux

Description

Returns true if the type is supported.

Syntax

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

Parameters

Type
Specify a vector type.

See Also

Example

Determine if the specified vector type is supported.
[C#]
//Check if the specified vector type is supported.
if (provider.Vectors.Factory.IsTypeSupported(vectorType))
{
    // Create a custom vector.
    IAgCrdnVector vector = provider.Vectors.Factory.Create(
        "myVector", string.Empty, vectorType);
}
Determine if the specified vector type is supported.
[Visual Basic .NET]
'Check if the specified vector type is supported.
If provider.Vectors.Factory.IsTypeSupported(vectorType) Then
	' Create a custom vector.
	Dim vector As IAgCrdnVector = provider.Vectors.Factory.Create("myVector", String.Empty, vectorType)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.