Class LinePatternList
Inheritance
System.Object
LinePatternList
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 LinePatternList : IShowPropertyImpl, IShowProperty, IPropertyEntry, IAttributeList, ISerializable, ICommandHandler, IDeserializationCallback
Constructors
|
Improve this Doc
View Source
LinePatternList()
Constructs an empty LinePatternList. Usually you dont have to construct a LinePatternList
since on construction of a new Project the global LinePatternList is
cloned and set as the projects LinePatternList.
Declaration
|
Improve this Doc
View Source
LinePatternList(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected LinePatternList(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
Declaration
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Overrides
|
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 LinePattern. The current LinePattern is used when a new
GeoObject is constructed interactively.
Declaration
public LinePattern 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
Item[Int32]
Returns the line pattern with the given index.
Declaration
public LinePattern this[int Index] { get; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
index of required laine pattern
|
Property Value
|
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
Add(LinePattern)
Adds an LinePattern object to the list. Throws a NameAlreadyExistsException
if there is a LinePattern with the given name in the list. This also prevents the same
object added twice to the list.
Declaration
public void Add(LinePattern linePatternToAdd)
Parameters
| Type |
Name |
Description |
| LinePattern |
linePatternToAdd |
LinePattern to Add
|
|
Improve this Doc
View Source
Added(IPropertyPage)
Declaration
public override void Added(IPropertyPage pp)
Parameters
Overrides
|
Improve this Doc
View Source
Clone()
Returns a copy of this LinePatternList. The entries are cloned so the copy is independant.
Declaration
public LinePatternList Clone()
Returns
|
Improve this Doc
View Source
CreateOrFind(String, Double[])
Declaration
public LinePattern CreateOrFind(string Name, params double[] pattern)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
|
| System.Double[] |
pattern |
|
Returns
|
Improve this Doc
View Source
Find(String)
Returns the LinePattern with the given name or null if not found.
Declaration
public LinePattern Find(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
Name of the requsetd LinePattern
|
Returns
|
Improve this Doc
View Source
FindIndex(LinePattern)
Returns the index of the given line pattern or -1 if not in the list
Declaration
public int FindIndex(LinePattern lp)
Parameters
| Type |
Name |
Description |
| LinePattern |
lp |
line pattern whos index is required
|
Returns
| Type |
Description |
| System.Int32 |
the index found or -1 if not found
|
|
Improve this Doc
View Source
GetDefault()
Creates a default LinePatternList.
Declaration
public static LinePatternList GetDefault()
Returns
|
Improve this Doc
View Source
Remove(LinePattern)
Removes an entry from the LinePattern list. Depending on the context and global settings
there might be a warning if the LinePattern is beeing used by an IGeoObject belonging to the
Project. If the LinePattern is not in the list, nothing happens.
Declaration
public void Remove(LinePattern linePatternToRemove)
Parameters
| Type |
Name |
Description |
| LinePattern |
linePatternToRemove |
LinePattern to remove
|
|
Improve this Doc
View Source
Removed(IPropertyPage)
Declaration
public override void Removed(IPropertyPage pp)
Parameters
Overrides
Events
|
Improve this Doc
View Source
DidModifyEvent
Declaration
public event DidModifyDelegate DidModifyEvent
Event Type
|
Improve this Doc
View Source
RemovingFromListEvent
Provide a handler here to be notified when when a line pattern is beeing removed from this list.
Declaration
public event RemovingFromListDelegate RemovingFromListEvent
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.Owner
Declaration
IAttributeListContainer IAttributeList.Owner { get; set; }
Returns
|
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 |
|
|
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