<< Click to Display Table of Contents >> NShape Reference
|
Renames a layer.
bool RenameLayer(string previousName, string newName) |
Rename the layer with the specified name.
True, if the layer with the name previousName was found and successfully renamed. False, if a layer with the previous name does not exist.
Name |
Description |
---|---|
previousName |
Name of the layer to rename. |
newName |
The new name for the specified layer. |
Exception |
Condition |
---|---|
ArgumentNullException |
Parameter previousName is null or empty. Parameter newName is null or empty. |
ArgumentException |
A layer with the same name as newName already exists in the collection |