Show / Hide Table of Contents

Class LineWidthList

Inheritance
System.Object
IShowPropertyImpl
LineWidthList
Implements
IShowProperty
IPropertyEntry
IAttributeList
System.Runtime.Serialization.ISerializable
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.Flags
IShowPropertyImpl.Label
IShowPropertyImpl.Value
IShowPropertyImpl.ResourceId
IShowPropertyImpl.Parent
IShowPropertyImpl.SubItems
IShowPropertyImpl.ButtonClicked(PropertyEntryButton)
IShowPropertyImpl.OpenOrCloseSubEntries()
IShowPropertyImpl.propertyPage
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 LineWidthList : IShowPropertyImpl, IShowProperty, IPropertyEntry, IAttributeList, ISerializable, ICommandHandler, IDeserializationCallback

Constructors

| Improve this Doc View Source

LineWidthList()

Constructs an empty LineWidthList. Usually you dont have to construct a LineWidthList since on construction of a new Project the global LineWidthList is cloned and set as the projects LineWidthList.

Declaration
public LineWidthList()
| Improve this Doc View Source

LineWidthList(SerializationInfo, StreamingContext)

Constructor required by deserialization

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

Gets the number of entities in this list.

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

Current

Gets or sets the current LineWidth. The current LineWidth is used when a new GeoObject is constructed interactively.

Declaration
public LineWidth Current { get; set; }
Property Value
Type Description
LineWidth
| 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

Item[Int32]

Gets the LineWidth with the given index.

Declaration
public LineWidth this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
LineWidth
| 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

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

Methods

| Improve this Doc View Source

Add(LineWidth)

Adds an LineWidth object to the list. Throws a NameAlreadyExistsException if there is a LineWidth with the given name in the list. This also prevents the same object added twice to the list.

Declaration
public void Add(LineWidth lineWidthToAdd)
Parameters
Type Name Description
LineWidth lineWidthToAdd

LineWidth to Add

| Improve this Doc View Source

Added(IPropertyPage)

Overrides Added(IPropertyTreeView)

Declaration
public override void Added(IPropertyPage pp)
Parameters
Type Name Description
IPropertyPage pp
Overrides
IShowPropertyImpl.Added(IPropertyPage)
| Improve this Doc View Source

Clone()

Returns a copy of this LineWidthList. The entries are cloned so the copy is independant.

Declaration
public LineWidthList Clone()
Returns
Type Description
LineWidthList
| Improve this Doc View Source

CreateOrFind(String, Double)

Declaration
public LineWidth CreateOrFind(string Name, double width)
Parameters
Type Name Description
System.String Name
System.Double width
Returns
Type Description
LineWidth
| Improve this Doc View Source

CreateOrModify(String, Double)

Declaration
public LineWidth CreateOrModify(string Name, double width)
Parameters
Type Name Description
System.String Name
System.Double width
Returns
Type Description
LineWidth
| Improve this Doc View Source

Find(String)

Returns the LineWidth with the given name or null if not found.

Declaration
public LineWidth Find(string name)
Parameters
Type Name Description
System.String name

Name of the requsetd LineWidth

Returns
Type Description
LineWidth
| Improve this Doc View Source

FindIndex(LineWidth)

Returns the index of the given linewidth in this list

Declaration
public int FindIndex(LineWidth lw)
Parameters
Type Name Description
LineWidth lw

linewidth for which the index is requested

Returns
Type Description
System.Int32

the index found or -1 if this list does not contain lw

| Improve this Doc View Source

GetDefault()

Creates a default LineWidthList.

Declaration
public static LineWidthList GetDefault()
Returns
Type Description
LineWidthList
| 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

Read(String, SerializationInfo, StreamingContext)

Declaration
public static LineWidthList Read(string name, SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.String name
System.Runtime.Serialization.SerializationInfo info
System.Runtime.Serialization.StreamingContext context
Returns
Type Description
LineWidthList
| Improve this Doc View Source

Remove(LineWidth)

Removes an entry from the LineWidth list. Depending on the context and global settings there might be a warning if the LineWidth is beeing used by an IGeoObject belonging to the Project. If the LineWidth is not in the list, nothing happens.

Declaration
public void Remove(LineWidth lineWidthToRemove)
Parameters
Type Name Description
LineWidth lineWidthToRemove

LineWidth to remove

| Improve this Doc View Source

Removed(IPropertyPage)

Declaration
public override void Removed(IPropertyPage pp)
Parameters
Type Name Description
IPropertyPage pp
Overrides
IShowPropertyImpl.Removed(IPropertyPage)

Events

| Improve this Doc View Source

DidModifyEvent

Declaration
public event DidModifyDelegate DidModifyEvent
Event Type
Type Description
DidModifyDelegate
| Improve this Doc View Source

RemovingFromListEvent

Declaration
public event RemovingFromListDelegate RemovingFromListEvent
Event Type
Type Description
RemovingFromListDelegate

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.Owner

Declaration
IAttributeListContainer IAttributeList.Owner { get; set; }
Returns
Type Description
IAttributeListContainer
| 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
IAttributeList
System.Runtime.Serialization.ISerializable
ICommandHandler
System.Runtime.Serialization.IDeserializationCallback
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX