Class LayerList
Eine Liste von Layern, immer alphabetisch nach Namen sortiert.
Die Namen müssen eindeutig sein. Das Zufügen bzw. Umbenennen eines Layers, so
dass Mehrdeutigkeiten entstehen würden, führt zu einer Exception.
Inheritance
System.Object
LayerList
Implements
System.Runtime.Serialization.ISerializable
System.Collections.ICollection
System.Collections.IEnumerable
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
[Serializable]
public class LayerList : IShowPropertyImpl, IShowProperty, IPropertyEntry, INotifyModification, ISerializable, ICollection, IEnumerable, IAttributeList, ICommandHandler, IDeserializationCallback
Constructors
|
Improve this Doc
View Source
LayerList()
Declaration
|
Improve this Doc
View Source
LayerList(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected LayerList(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
SerializationInfo
|
| System.Runtime.Serialization.StreamingContext |
context |
StreamingContext
|
Properties
|
Improve this Doc
View Source
ColorList
Declaration
public ColorList ColorList { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Count
Declaration
public int Count { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Current
Declaration
public Layer Current { get; set; }
Property Value
|
Improve this Doc
View Source
EntryType
Declaration
public override ShowPropertyEntryType EntryType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
IsSynchronized
Declaration
public bool IsSynchronized { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Item[Int32]
Declaration
public Layer this[int Index] { get; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
Property Value
|
Improve this Doc
View Source
LabelType
Declaration
public override ShowPropertyLabelFlags LabelType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Owner
Declaration
public IAttributeListContainer Owner { get; set; }
Property Value
|
Improve this Doc
View Source
SubEntries
Overrides SubEntries,
returns the subentries in this property view.
Declaration
public override IShowProperty[] SubEntries { get; }
Property Value
Overrides
|
Improve this Doc
View Source
SubEntriesCount
Overrides SubEntriesCount,
returns the number of subentries in this property view.
Declaration
public override int SubEntriesCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
|
Improve this Doc
View Source
SyncRoot
Declaration
public object SyncRoot { get; }
Property Value
| Type |
Description |
| System.Object |
|
Methods
|
Improve this Doc
View Source
Add(Layer)
Fügt einen neuen Layer der Liste zu.
Declaration
public void Add(Layer LayerToAdd)
Parameters
| Type |
Name |
Description |
| Layer |
LayerToAdd |
Der neue Layer
|
|
Improve this Doc
View Source
CopyTo(Array, Int32)
Declaration
public void CopyTo(Array array, int index)
Parameters
| Type |
Name |
Description |
| System.Array |
array |
|
| System.Int32 |
index |
|
|
Improve this Doc
View Source
CreateOrFind(String)
Declaration
public Layer CreateOrFind(string Name)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
Returns
|
Improve this Doc
View Source
Find(String)
Liefert den Layer mit dem im Parameter gegebenen Namen.
Liefert null, wenn kein solcher Layer in der Liste existiert.
Declaration
public Layer Find(string Name)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
Returns
|
Improve this Doc
View Source
FindIndex(Layer)
Declaration
public int FindIndex(Layer ly)
Parameters
| Type |
Name |
Description |
| Layer |
ly |
|
Returns
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
GetDefault()
Liefert eine LayerList aus der StringResource. Wird benötigt, wenn keine
globale LayerListe gegeben ist.
Declaration
public static LayerList GetDefault()
Returns
| Type |
Description |
| LayerList |
Die Default LayerList
|
|
Improve this Doc
View Source
GetEnumerator()
Declaration
public IEnumerator GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
The System.Runtime.Serialization.SerializationInfo to populate with data.
|
| System.Runtime.Serialization.StreamingContext |
context |
The destination (System.Runtime.Serialization.StreamingContext) for this serialization.
|
|
Improve this Doc
View Source
Remove(Layer)
Entfernt einen Layer aus der Liste. Kein Propblem, wenn der Layer nicht in der Liste ist.
Declaration
public void Remove(Layer LayerToRemove)
Parameters
| Type |
Name |
Description |
| Layer |
LayerToRemove |
|
|
Improve this Doc
View Source
ToArray()
Declaration
Returns
Events
|
Improve this Doc
View Source
DidModifyEvent
Declaration
public event DidModifyDelegate DidModifyEvent
Event Type
|
Improve this Doc
View Source
LayerAddedEvent
Declaration
public event LayerList.LayerAddedDelegate LayerAddedEvent
Event Type
|
Improve this Doc
View Source
LayerRemovedEvent
Declaration
public event LayerList.LayerRemovedDelegate LayerRemovedEvent
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
IAttributeList.Add(INamedAttribute)
Declaration
void IAttributeList.Add(INamedAttribute toAdd)
Parameters
|
Improve this Doc
View Source
IAttributeList.AttributeChanged(INamedAttribute, ReversibleChange)
Declaration
void IAttributeList.AttributeChanged(INamedAttribute attribute, ReversibleChange change)
Parameters
|
Improve this Doc
View Source
IAttributeList.Clone()
Declaration
IAttributeList IAttributeList.Clone()
Returns
|
Improve this Doc
View Source
IAttributeList.Current
Declaration
INamedAttribute IAttributeList.Current { get; }
Returns
|
Improve this Doc
View Source
IAttributeList.Find(String)
Declaration
INamedAttribute IAttributeList.Find(string Name)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
Returns
|
Improve this Doc
View Source
IAttributeList.Initialize()
Declaration
void IAttributeList.Initialize()
|
Improve this Doc
View Source
IAttributeList.Item(Int32)
Declaration
INamedAttribute IAttributeList.Item(int Index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
Returns
|
Improve this Doc
View Source
IAttributeList.MayChangeName(INamedAttribute, String)
Declaration
bool IAttributeList.MayChangeName(INamedAttribute Attribute, string newName)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IAttributeList.NameChanged(INamedAttribute, String)
Declaration
void IAttributeList.NameChanged(INamedAttribute Attribute, string oldName)
Parameters
|
Improve this Doc
View Source
IAttributeList.Update(IGeoObject)
Declaration
void IAttributeList.Update(IGeoObject Object2Update)
Parameters
|
Improve this Doc
View Source
IAttributeList.Update(Boolean)
Declaration
void IAttributeList.Update(bool AddMissingToList)
Parameters
| Type |
Name |
Description |
| System.Boolean |
AddMissingToList |
|
|
Improve this Doc
View Source
ICommandHandler.OnCommand(String)
Declaration
bool ICommandHandler.OnCommand(string MenuId)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICommandHandler.OnSelected(MenuWithHandler, Boolean)
Declaration
void ICommandHandler.OnSelected(MenuWithHandler selectedMenuItem, bool selected)
Parameters
| Type |
Name |
Description |
| MenuWithHandler |
selectedMenuItem |
|
| System.Boolean |
selected |
|
|
Improve this Doc
View Source
ICommandHandler.OnUpdateCommand(String, CommandState)
Declaration
bool ICommandHandler.OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
| CommandState |
CommandState |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IDeserializationCallback.OnDeserialization(Object)
Declaration
void IDeserializationCallback.OnDeserialization(object sender)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
Implements
System.Runtime.Serialization.ISerializable
System.Collections.ICollection
System.Collections.IEnumerable
System.Runtime.Serialization.IDeserializationCallback