Class HatchStyleList
List of HatchStyle derived objects. Typically a Project
or the Settings maintain such a list.
The list is serializable and can be shown and modified in the .
There can not be two hatchstyles with the same name.
Inheritance
System.Object
HatchStyleList
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 HatchStyleList : IShowPropertyImpl, IShowProperty, IPropertyEntry, ISerializable, ICommandHandler, IAttributeList, IDeserializationCallback
Constructors
|
Improve this Doc
View Source
HatchStyleList()
Declaration
|
Improve this Doc
View Source
HatchStyleList(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected HatchStyleList(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 hatchstyles in the list.
Declaration
public int Count { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Current
Declaration
public HatchStyle 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]
Declaration
public HatchStyle 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
Methods
|
Improve this Doc
View Source
Add(HatchStyle)
Declaration
public void Add(HatchStyle ToAdd)
Parameters
| Type |
Name |
Description |
| HatchStyle |
ToAdd |
The hatchstyle to add
|
|
Improve this Doc
View Source
Added(IPropertyPage)
Declaration
public override void Added(IPropertyPage propertyTreeView)
Parameters
Overrides
|
Improve this Doc
View Source
Clone()
Declaration
public HatchStyleList Clone()
Returns
|
Improve this Doc
View Source
CreateHatchStyleList()
Declaration
public static HatchStyleList CreateHatchStyleList()
Returns
|
Improve this Doc
View Source
Find(String)
Returns the hatchstyle with the given name from the list.
If there is no such hatchstyle null will be returned.
Declaration
public HatchStyle Find(string Name)
Parameters
| Type |
Name |
Description |
| System.String |
Name |
Name of the hatchstyle
|
Returns
| Type |
Description |
| HatchStyle |
The hatchstyle found or null
|
|
Improve this Doc
View Source
GetDefault(IAttributeListContainer)
Declaration
public static HatchStyleList GetDefault(IAttributeListContainer container)
Parameters
Returns
|
Improve this Doc
View Source
OnVisibilityChanged(Boolean)
Declaration
public override void OnVisibilityChanged(bool isVisible)
Parameters
| Type |
Name |
Description |
| System.Boolean |
isVisible |
|
Overrides
|
Improve this Doc
View Source
Refresh()
Declaration
public override void Refresh()
Overrides
|
Improve this Doc
View Source
Remove(HatchStyle)
Removes the given HatchStyle from the list. No action is taken
if the hatchstyle is not in the list.
Declaration
public void Remove(HatchStyle ToRemove)
Parameters
| Type |
Name |
Description |
| HatchStyle |
ToRemove |
The hatchstyle to remove
|
|
Improve this Doc
View Source
Removed(IPropertyTreeView)
Declaration
public override void Removed(IPropertyTreeView propertyTreeView)
Parameters
Overrides
Events
|
Improve this Doc
View Source
CreateHatchStyleListEvent
Declaration
public static event HatchStyleList.CreateHatchStyleListDelegate CreateHatchStyleListEvent
Event Type
|
Improve this Doc
View Source
DidModifyEvent
Declaration
public event DidModifyDelegate DidModifyEvent
Event Type
|
Improve this Doc
View Source
RemovingFromListEvent
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.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