Class CheckedLayerList
A collapsable treeview entry for the ControlCenter that presents to the user all layers of the
provided list with a checkbox next to each layer. The titel of the entry is specified by
the provided resourceId.
Inheritance
System.Object
CheckedLayerList
Implements
System.Runtime.Serialization.ISerializable
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 CheckedLayerList : IShowPropertyImpl, IShowProperty, IPropertyEntry, ICommandHandler, ISerializable, IDeserializationCallback
Constructors
|
Improve this Doc
View Source
CheckedLayerList(LayerList, Layer[], String)
Creates a new with the provided layer list and a set of
initially checked layers
Declaration
public CheckedLayerList(LayerList layerList, Layer[] checkedLayers, string resourceId)
Parameters
| Type |
Name |
Description |
| LayerList |
layerList |
List of all layers to display
|
| Layer[] |
checkedLayers |
Subset of the layerlist that is to be checked initially
|
| System.String |
resourceId |
Resource id for the title of the Controlcenter entry
|
|
Improve this Doc
View Source
CheckedLayerList(SerializationInfo, StreamingContext)
Declaration
protected CheckedLayerList(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Properties
|
Improve this Doc
View Source
Checked
Returns all checked Layers
Declaration
public Layer[] Checked { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Overrides
|
Improve this Doc
View Source
EntryType
Declaration
public override ShowPropertyEntryType EntryType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
LabelType
Declaration
public override ShowPropertyLabelFlags LabelType { get; }
Property Value
Overrides
|
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
Methods
|
Improve this Doc
View Source
IsLayerChecked(Layer)
Declaration
public bool IsLayerChecked(Layer l)
Parameters
| Type |
Name |
Description |
| Layer |
l |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
OnCommand(String)
Declaration
public bool OnCommand(string MenuId)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
OnUpdateCommand(String, CommandState)
Declaration
public bool OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
| CommandState |
CommandState |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Refresh()
Declaration
|
Improve this Doc
View Source
Set(Layer, Boolean)
Declaration
public void Set(Layer l, bool check)
Parameters
| Type |
Name |
Description |
| Layer |
l |
|
| System.Boolean |
check |
|
Events
|
Improve this Doc
View Source
CheckStateChangedEvent
Event that gets called when the user changes the checbox next to a layer.
Declaration
public event CheckedLayerList.CheckStateChangedDelegate CheckStateChangedEvent
Event Type
Explicit Interface Implementations
|
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
IDeserializationCallback.OnDeserialization(Object)
Declaration
void IDeserializationCallback.OnDeserialization(object sender)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
|
Improve this Doc
View Source
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback