LayerCollection.Add Method
Add(Layer item)
Adds an object to the end of the collection.Syntax
public void Add (
Layer item
)
Parameters
The object to be added to the end of the collection.
Platforms
Windows, Linux, Android
If the containing object is part of a View, then calls should only be made from the GUI thread while holding the global configuration lock using a Guard
The Thread Access Verifier will enforce this rule when it is active and the object is part of a View.
More details about thread safety and the global configuration lock can be found in Threading Model, configuration.
public void Add (
Layer item
)
Windows, Linux, Android
In this article
If the containing object is part of a View, then calls should only be made from the GUI thread while holding the global configuration lock using a Guard
The Thread Access Verifier will enforce this rule when it is active and the object is part of a View.
More details about thread safety and the global configuration lock can be found in Threading Model, configuration.
public:
void add (
const LayerPtr& item
)
Windows, Linux, Android
In this article
Adds an object to the end of the collection.
If the containing object is part of a View, then calls should only be made from the GUI thread while holding the global configuration lock using a Guard
The Thread Access Verifier will enforce this rule when it is active and the object is part of a View.
More details about thread safety and the global configuration lock can be found in Threading Model, configuration.
Name | Description | |
---|---|---|
Public method | add(Layer o) | Adds an element to the end of the collection. |
Public method | add(int index, Layer o) | Inserts an element into the collection at the specified index. |
public final boolean add (
Layer o
)
public final void add (
int index,
Layer o
)
Windows, Linux, Android
In this article
This element is not available using the selected API.
In this article