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
See Also
Example
Check whether the axes with specified name exist.
| [C#] |
|---|
//Check if the axes with specified name exist
if (provider.Axes.Contains("AxesName"))
{
Console.WriteLine("Axes \"{0}\" already exist!", "AxesName");
}
|
|
Check whether the axes with specified name exist.
| [Visual Basic .NET] |
|---|
'Check if the axes with specified name exist
If provider.Axes.Contains("AxesName") Then
Console.WriteLine("Axes ""{0}"" already exist!", "AxesName")
End If
|
|