ImageAreaCollection Class

A type-safe collection of IImageArea objects

Definition

Namespace: EWSoftware.ImageMaps
Assemblies:  EWSoftware.ImageMaps.Web.Controls (in EWSoftware.ImageMaps.Web.Controls.dll) Version: 2023.1.3.0
  EWSoftware.ImageMaps.Windows.Forms (in EWSoftware.ImageMaps.Windows.Forms.dll) Version: 2023.1.3.0
[SerializableAttribute]
public class ImageAreaCollection : Collection<IImageArea>
Inheritance
Object    CollectionIImageArea    ImageAreaCollection
Derived

Remarks

The class has a type-safe enumerator. It is used directly by the Windows Forms image map control.

Constructors

ImageAreaCollection Default constructor
ImageAreaCollection(IImageMap) Construct an empty collection associated with the specified IImageMap control
ImageAreaCollection(IImageMap, IEnumerableIImageArea) Construct a collection from an enumerable list of IImageArea objects

Properties

CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionIImageArea)
ImageMapControl This property is used to get the IImageMap control that uses this collection. Its primary use is by the ImageAreaCoordinateEditor designer class so that it can get the image information it needs at design time.
ItemGets or sets the element at the specified index.
(Inherited from CollectionIImageArea)
ItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionIImageArea)

Methods

AddAdds an object to the end of the CollectionT.
(Inherited from CollectionIImageArea)
AddRange Add a range of IImageArea objects from an enumerable list
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionIImageArea)
ClearItems This is overridden to notify the image map that all of the image areas have been removed
(Overrides CollectionTClearItems)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionIImageArea)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionIImageArea)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionIImageArea)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionIImageArea)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionIImageArea)
InsertItem This is overridden to notify the image map that a new image area has been added to the collection
(Overrides CollectionTInsertItem(Int32, T))
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionIImageArea)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionIImageArea)
RemoveItem This is overridden to notify the image map that an image area has been removed from the collection
(Overrides CollectionTRemoveItem(Int32))
SetItem This is overridden to notify the image map that a new image area has replaced another in the collection.
(Overrides CollectionTSetItem(Int32, T))
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

ImageAreaChanged This event is raised when an image area property changes that affects its visual presentation in the image map control such as its position or enabled state.

See Also