UserDataList

References
Represents a collection of user data.

Properties

Count

#Since v5.0
public int Count { get; }
Number of UserData objects in this list.

Indexers

this[]

#
public UserData this[int index] { get; }
Retrieve through indexer. Read-only access.
index (int)

Methods

Add

#Since v5.0
public bool Add(UserData userdata)
If the user-data is already in a different UserDataList, it will be removed from that list and added to this list.
userdata (UserData)Data element.
Whether this operation succeeded.

Contains

#Since v6.1
public bool Contains(Guid userdataId)
Checks for the existence of a specific type of user-data in this list Both .NET and native user-data is checked
userdataId (Guid)

Find

#Since v5.0
public UserData Find(Type userdataType)
Finds a specific data type in this regulated collection.
userdataType (Type)A data type.
The found data, or null of nothing was found.

GetEnumerator

#Since v6.0
public IEnumerator<UserData> GetEnumerator()
Get enumerator for UserDataList

Purge

#Since v6.0
public void Purge()
Removes all user data from this geometry.
Remarks: User Remove(UserData) to delete a single, known, item.

Remove

#Since v5.6
public bool Remove(UserData userdata)
Remove the user-data from this list
userdata (UserData)
true if the user data was successfully removed
Explicit

IEnumerable.GetEnumerator

#Since v6.0
IEnumerator IEnumerable.GetEnumerator()