STK Vector Geometry ToolSend comments on this topic.
Contains Method (IAgCrdnPointGroup)
See Also
Name
An element to search for.
Windows





Windows & Linux

Description

Searches for a an element with a given name. Returns false if the specified element does not exist.

Syntax

[Visual Basic .NET]
Public Function Contains( _
    ByVal Name As String _
) As Boolean
[C#]
public bool Contains(
    string Name
);
[Managed C++]
public: bool Contains(
    String __gc ^ Name
);
[Unmanaged C++]
public: HRESULT Contains(
    BSTR Name,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool contains(
    String Name
);
[Python - STK API ]
def Contains(self, Name:str) -> bool:

Parameters

Name
An element to search for.

See Also

Example

Check whether a point with the specified name exists.
[C#]
// Check if a point with specified name exists.
if (provider.Points.Contains("PointName"))
{
    Console.WriteLine("The point \"{0}\" exists!", "PointName");
}
Check whether a point with the specified name exists.
[Visual Basic .NET]
' Check if a point with specified name exists.
If provider.Points.Contains("PointName") Then
	Console.WriteLine("The point ""{0}"" exists!", "PointName")
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.