LayerKeyedCollection Class

Layers collection.
Public Class LayerKeyedCollection 
Inherits EyeshotDisposableKeyedCollection(Of Layer)
This language is not supported or no code example is available.
public class LayerKeyedCollection : EyeshotDisposableKeyedCollection<Layer>
This language is not supported or no code example is available.
Name Description
Public constructor LayerKeyedCollection() Empty constructor.
Public constructor LayerKeyedCollection(Layer) Constructor with default layer.
Public constructor LayerKeyedCollection(LayerKeyedCollection)
Top
Name Description
Public property Comparer (inherited from KeyedCollection<TKey, TItem>).
Protected property DisposeItems True when the collection belongs to a Workspace control and items must be disposed after removal. (inherited from EyeshotDisposableKeyedCollection<T>).
Public property Item(int) Gets or sets the element at the specified index. (inherited from EyeshotKeyedCollection<T>).
Public property Item(string) Gets the element with the specified name. (inherited from EyeshotKeyedCollection<T>).
Top
Methods
 
Name Description
Public method Add(string) Adds one Layer at the end of this collection.
Public method Add(string, Color) Adds one Layer at the end of this collection.
Public method Add(string, Color, bool) Adds a layer at the end of this collection.
Public method Add(string, Color, string) Adds one Layer at the end of this collection.
Public method Add(string, Color, string, string) Adds a layer at the end of this collection..
Public method AddOrReplace(T) Adds or replaces an element. (inherited from EyeshotKeyedCollection<T>).
Public method AddRange(IList<Layer>) Adds the Layers of the specified collection to the end of this one.
Protected method AreEntitiesWith(string, IList<Entity>) Tells if there are some entities using this dictionary element.
Internal protected (Protected Friend) method Static AreEqualStrings(string, string) (inherited from EyeshotKeyedCollection<T>).
Internal protected (Protected Friend) method ChangeEntitiesRegenMode(IEnumerable<Entity>, string)
Protected method ChangeItemKey(TItem, TKey) (inherited from KeyedCollection<TKey, TItem>).
Internal protected (Protected Friend) method CheckItemIndex(int, bool) Checks if an index is valid for the collection. (inherited from EyeshotKeyedCollection<T>).
Internal protected (Protected Friend) method CheckItemKey(string, bool) Checks if a key exists in the collection. (inherited from EyeshotKeyedCollection<T>).
Public method Clear() Clears this collection and adds a layer called "Default".
Public method Clear(Layer) Clears this collection and adds a default layer.
Public method Clear(bool) Clears this collection.
Protected method ClearItems() Removes all elements from the collection. (inherited from EyeshotDisposableKeyedCollection<T>).
Public method Contains(TKey) (inherited from KeyedCollection<TKey, TItem>).
Protected method DisposeItem(T) Dispose the item of the collection. (inherited from EyeshotDisposableKeyedCollection<T>).
Public method Empty(int) Removes all the entities on the specified layer.
Public method Empty(string) Removes all the entities on the specified layer.
Protected method GetKeyForItem(Layer)
Protected method InsertItem(int, Layer)
Protected method ItemCanBeRemoved(T, string) Checks if a specific item is used somewhere. (inherited from EyeshotKeyedCollection<T>).
Public method Remove(Layer) Removes the specified layer and all entities on it.
Public method Remove(string) Removes the specified layer and all entities on it.
Public method RemoveAt(int) Removes the specified layer and all entities on it.
Protected method RemoveItem(int) (inherited from EyeshotDisposableKeyedCollection<T>).
Public method ReplaceItem(T) Replaces the element with the same key. (inherited from EyeshotKeyedCollection<T>).
Protected method SetItem(int, Layer)
Public method TryAdd(T) Adds an element only if not already present in the collection. (inherited from EyeshotKeyedCollection<T>).
Public method TryGetValue(string, out T) Gets the value associated with the specified key. (inherited from EyeshotKeyedCollection<T>).
Public method TryRemove(T) Removes the item form the collection, if present. (inherited from EyeshotKeyedCollection<T>).
Public method TryRemove(string) Removes the value associated with the specified key form the collection, if present. (inherited from EyeshotKeyedCollection<T>).
Public method TurnAllOff() Turns all layers off.
Public method TurnAllOn() Turns all layers on.
Public method TurnOff(int) Turns the specified layer off.
Public method TurnOff(string) Turns the specified layer off.
Public method TurnOn(int) Turns the specified layer on.
Public method TurnOn(string) Turns the specified layer on.
Top
Fields
 
Name Description
Internal protected (Protected Friend) field EyeshotKeyedCollection.Workspace The related Workspace (inherited from EyeshotKeyedCollection<T>).
Top
Remarks
 
Layer name comparison is performed case insensitive.

.NET Framework

Supported in: 4.7.2

In this article

Definition