Show / Hide Table of Contents

Class ColorList

Eine Tabelle von benannten Farben. Die Tabelle ist serialisierbar und wird gewöhnlich in einem "Settings" Objekt gespeichert. Die Tabelle kann in der EigenschaftenAnzeige interaktiv manipuliert werden.

Inheritance
System.Object
IShowPropertyImpl
ColorList
Implements
IShowProperty
IPropertyEntry
System.Runtime.Serialization.ISerializable
INotifyModification
System.Collections.ICollection
System.Collections.IEnumerable
IAttributeList
ICommandHandler
System.Runtime.Serialization.IDeserializationCallback
Inherited Members
IShowPropertyImpl.propertyTreeView
IShowPropertyImpl.labelText
IShowPropertyImpl.resourceId
IShowPropertyImpl.flagsToSuppress
IShowPropertyImpl.SuppressFlags(ShowPropertyLabelFlags)
IShowPropertyImpl.Frame
IShowPropertyImpl.IShowProperty.Added(IPropertyTreeView)
IShowPropertyImpl.Added(IPropertyTreeView)
IShowPropertyImpl.Selected()
IShowPropertyImpl.UnSelected()
IShowPropertyImpl.ChildSelected(IShowProperty)
IShowPropertyImpl.Opened(Boolean)
IShowPropertyImpl.Removed(IPropertyTreeView)
IShowPropertyImpl.ShowOpen(Boolean)
IShowPropertyImpl.Select()
IShowPropertyImpl.LabelText
IShowPropertyImpl.InfoText
IShowPropertyImpl.HelpLink
IShowPropertyImpl.OwnerDrawHeight
IShowPropertyImpl.IShowProperty.SetTabIndex(Int32)
IShowPropertyImpl.StateChangedEvent
IShowPropertyImpl.LabelChanged(String)
IShowPropertyImpl.SetFocus()
IShowPropertyImpl.Hidden
IShowPropertyImpl.ReadOnly
IShowPropertyImpl.Refresh()
IShowPropertyImpl.OnEnterPressed()
IShowPropertyImpl.OnVisibilityChanged(Boolean)
IShowPropertyImpl.IsSelected
IShowPropertyImpl.Concat(IShowProperty[], IShowProperty[])
IShowPropertyImpl.Update(IShowProperty)
IShowPropertyImpl.SelectedBckgColor
IShowPropertyImpl.SelectedTextColor
IShowPropertyImpl.UnselectedBckgColor
IShowPropertyImpl.UnselectedTextColor
IShowPropertyImpl.IPropertyEntry.IsOpen
IShowPropertyImpl.HasDropDownButton
IShowPropertyImpl.ValueIsEditable
IShowPropertyImpl.Label
IShowPropertyImpl.Value
IShowPropertyImpl.ResourceId
IShowPropertyImpl.Parent
IShowPropertyImpl.SubItems
IShowPropertyImpl.ButtonClicked(PropertyEntryButton)
IShowPropertyImpl.OpenOrCloseSubEntries()
IShowPropertyImpl.propertyPage
IShowPropertyImpl.Added(IPropertyPage)
IShowPropertyImpl.Removed(IPropertyPage)
IShowPropertyImpl.GetDropDownList()
IShowPropertyImpl.StartEdit(Boolean)
IShowPropertyImpl.EndEdit(Boolean, Boolean, String)
IShowPropertyImpl.EditTextChanged(String)
IShowPropertyImpl.IPropertyEntry.Index
IShowPropertyImpl.IPropertyEntry.IndentLevel
IShowPropertyImpl.Selected(IPropertyEntry)
IShowPropertyImpl.UnSelected(IPropertyEntry)
IShowPropertyImpl.ListBoxSelected(Int32)
IShowPropertyImpl.DeferUpdate
IShowPropertyImpl.PropertyEntryChangedStateEvent
IShowPropertyImpl.PropertyEntryChangedState(StateChangedArgs)
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()
Namespace: CADability.Attribute
Assembly: CADability.dll
Syntax
[Serializable]
public class ColorList : IShowPropertyImpl, IShowProperty, IPropertyEntry, ISerializable, INotifyModification, ICollection, IEnumerable, IAttributeList, ICommandHandler, IDeserializationCallback

Constructors

| Improve this Doc View Source

ColorList()

Erzeugt eine leere ColorList.

Declaration
public ColorList()
| Improve this Doc View Source

ColorList(SerializationInfo, StreamingContext)

Constructor required by deserialization

Declaration
protected ColorList(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

ContextMenu

Declaration
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Type Description
MenuWithHandler[]
Overrides
IShowPropertyImpl.ContextMenu
| 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 ColorDef Current { get; set; }
Property Value
Type Description
ColorDef
| Improve this Doc View Source

CurrentIndex

Declaration
public int CurrentIndex { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

EntryType

Overrides EntryType, returns GroupTitle.

Declaration
public override ShowPropertyEntryType EntryType { get; }
Property Value
Type Description
ShowPropertyEntryType
Overrides
IShowPropertyImpl.EntryType
| Improve this Doc View Source

Flags

Declaration
public ColorList.StaticFlags Flags { get; set; }
Property Value
Type Description
ColorList.StaticFlags
| Improve this Doc View Source

IsSynchronized

Declaration
public bool IsSynchronized { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[Int32]

Liefert das ColorDef Objekt zu dem gegebenen Index. Den Index zu einem Namen bekommt man mit der Methode IndexOf(String).

Declaration
public ColorDef this[int Index] { get; }
Parameters
Type Name Description
System.Int32 Index

Der Index des gesuchten Objektes

Property Value
Type Description
ColorDef
| Improve this Doc View Source

LabelType

Overrides LabelType

Declaration
public override ShowPropertyLabelFlags LabelType { get; }
Property Value
Type Description
ShowPropertyLabelFlags
Overrides
IShowPropertyImpl.LabelType
| Improve this Doc View Source

Names

Declaration
public string[] Names { get; }
Property Value
Type Description
System.String[]
| Improve this Doc View Source

Owner

Declaration
public IAttributeListContainer Owner { get; set; }
Property Value
Type Description
IAttributeListContainer
| Improve this Doc View Source

SubEntries

Overrides SubEntries, returns the subentries in this property view.

Declaration
public override IShowProperty[] SubEntries { get; }
Property Value
Type Description
IShowProperty[]
Overrides
IShowPropertyImpl.SubEntries
| 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
IShowPropertyImpl.SubEntriesCount
| Improve this Doc View Source

SyncRoot

Declaration
public object SyncRoot { get; }
Property Value
Type Description
System.Object

Methods

| Improve this Doc View Source

Add(ColorDef)

Declaration
public void Add(ColorDef cd)
Parameters
Type Name Description
ColorDef cd
| Improve this Doc View Source

AddColor(String, Color)

Liefert den Index zu dem gegebenen Namen.

Declaration
public int AddColor(string Name, Color Color)
Parameters
Type Name Description
System.String Name

Der Name der gesuchten Farbe.

System.Drawing.Color Color

RGB (oder auch ARGB) Wert der Farbe.

Returns
Type Description
System.Int32

Index der gesuchten Farbe oder -1, wenn keine Farbe mit diesem Namen in der Tabelle existiert.

| 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, Color)

Declaration
public ColorDef CreateOrFind(string Name, Color Color)
Parameters
Type Name Description
System.String Name
System.Drawing.Color Color
Returns
Type Description
ColorDef
| Improve this Doc View Source

CreateOrModify(String, Color)

Declaration
public ColorDef CreateOrModify(string Name, Color Color)
Parameters
Type Name Description
System.String Name
System.Drawing.Color Color
Returns
Type Description
ColorDef
| Improve this Doc View Source

Find(String)

Implements Find(String)

Declaration
public ColorDef Find(string Name)
Parameters
Type Name Description
System.String Name
Returns
Type Description
ColorDef
| Improve this Doc View Source

FindColor(Color)

Declaration
public ColorDef FindColor(Color rgb)
Parameters
Type Name Description
System.Drawing.Color rgb
Returns
Type Description
ColorDef
| Improve this Doc View Source

FindIndex(ColorDef)

Declaration
public int FindIndex(ColorDef cd)
Parameters
Type Name Description
ColorDef cd
Returns
Type Description
System.Int32
| Improve this Doc View Source

GetColor(Int32)

Liefert die Farbe zu dem gegebenen Index.

Declaration
public Color GetColor(int Index)
Parameters
Type Name Description
System.Int32 Index

Der Index.

Returns
Type Description
System.Drawing.Color

Die Farbe.

| Improve this Doc View Source

GetDefault()

Declaration
public static ColorList GetDefault()
Returns
Type Description
ColorList
| Improve this Doc View Source

GetEnumerator()

Declaration
public IEnumerator GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator
| Improve this Doc View Source

GetName(Int32)

Declaration
public string GetName(int Index)
Parameters
Type Name Description
System.Int32 Index
Returns
Type Description
System.String
| Improve this Doc View Source

GetNewName()

Declaration
public string GetNewName()
Returns
Type Description
System.String
| Improve this Doc View Source

GetNewName(String)

Declaration
public string GetNewName(string startWith)
Parameters
Type Name Description
System.String startWith
Returns
Type Description
System.String
| Improve this Doc View Source

GetNextColorDef(String)

Declaration
public ColorDef GetNextColorDef(string Name)
Parameters
Type Name Description
System.String Name
Returns
Type Description
ColorDef
| 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

IndexOf(String)

Liefert den Namen zu dem gegebenen Index.

Declaration
public int IndexOf(string Name)
Parameters
Type Name Description
System.String Name
Returns
Type Description
System.Int32

Der Name.

| Improve this Doc View Source

IsStatic(Int32)

Declaration
public bool IsStatic(int idx)
Parameters
Type Name Description
System.Int32 idx
Returns
Type Description
System.Boolean
| Improve this Doc View Source

RemoveAt(Int32)

Entfernt die Farbe mit dem gegebenen Index.

Declaration
public void RemoveAt(int Index)
Parameters
Type Name Description
System.Int32 Index

Der Index.

| Improve this Doc View Source

SetColor(Int32, Color)

Verändert die Farbe bei gegebenem Index.

Declaration
public void SetColor(int Index, Color Color)
Parameters
Type Name Description
System.Int32 Index

Index des zu verändernden Wertes.

System.Drawing.Color Color

Neuer Farbwert.

| Improve this Doc View Source

SetName(Int32, String)

Verändert den Namen bei gegebenem Index.

Declaration
public void SetName(int Index, string Name)
Parameters
Type Name Description
System.Int32 Index

Index des zu verändernden Wertes.

System.String Name

Neuer Name.

Events

| Improve this Doc View Source

DidModifyEvent

Declaration
public event DidModifyDelegate DidModifyEvent
Event Type
Type Description
DidModifyDelegate

Explicit Interface Implementations

| Improve this Doc View Source

IAttributeList.Add(INamedAttribute)

Declaration
void IAttributeList.Add(INamedAttribute toAdd)
Parameters
Type Name Description
INamedAttribute toAdd
| Improve this Doc View Source

IAttributeList.AttributeChanged(INamedAttribute, ReversibleChange)

Declaration
void IAttributeList.AttributeChanged(INamedAttribute attribute, ReversibleChange change)
Parameters
Type Name Description
INamedAttribute attribute
ReversibleChange change
| Improve this Doc View Source

IAttributeList.Clone()

Declaration
IAttributeList IAttributeList.Clone()
Returns
Type Description
IAttributeList
| Improve this Doc View Source

IAttributeList.Current

Declaration
INamedAttribute IAttributeList.Current { get; }
Returns
Type Description
INamedAttribute
| Improve this Doc View Source

IAttributeList.Find(String)

Declaration
INamedAttribute IAttributeList.Find(string Name)
Parameters
Type Name Description
System.String Name
Returns
Type Description
INamedAttribute
| 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
Type Description
INamedAttribute
| Improve this Doc View Source

IAttributeList.MayChangeName(INamedAttribute, String)

Declaration
bool IAttributeList.MayChangeName(INamedAttribute attribute, string newName)
Parameters
Type Name Description
INamedAttribute attribute
System.String newName
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IAttributeList.NameChanged(INamedAttribute, String)

Declaration
void IAttributeList.NameChanged(INamedAttribute Attribute, string oldName)
Parameters
Type Name Description
INamedAttribute Attribute
System.String oldName
| Improve this Doc View Source

IAttributeList.Update(IGeoObject)

Declaration
void IAttributeList.Update(IGeoObject Object2Update)
Parameters
Type Name Description
IGeoObject Object2Update
| 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

IShowProperty
IPropertyEntry
System.Runtime.Serialization.ISerializable
INotifyModification
System.Collections.ICollection
System.Collections.IEnumerable
IAttributeList
ICommandHandler
System.Runtime.Serialization.IDeserializationCallback
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX