Show / Hide Table of Contents

Class ItemEventArgs<T>

Event arguments for spatial map events pertaining to an item (ItemAdded, ItemRemoved, etc.)

Inheritance
object
EventArgs
ItemEventArgs<T>
Inherited Members
EventArgs.Empty
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadRogue.Primitives.SpatialMaps
Assembly: TheSadRogue.Primitives.dll
Syntax
public class ItemEventArgs<T> : EventArgs
Type Parameters
Name Description
T

Type of item.

Constructors

View Source

ItemEventArgs(T, Point)

Constructor.

Declaration
public ItemEventArgs(T item, Point position)
Parameters
Type Name Description
T item

Item being represented.

Point position

Current position of the item.

View Source

ItemEventArgs(T, int, int)

Constructor.

Declaration
public ItemEventArgs(T item, int x, int y)
Parameters
Type Name Description
T item

Item being represented.

int x

X-value of the current position of the item.

int y

Y-value of the current position of the item.

Properties

View Source

Item

Item being represented.

Declaration
public T Item { get; }
Property Value
Type Description
T
View Source

Position

Current position of that item at time of event.

Declaration
public Point Position { get; }
Property Value
Type Description
Point

Extension Methods

PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>?)
PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>?, EventHandler<ValueChangedEventArgs<TProperty>>?)
  • View Source
In this article
Back to top Generated by DocFX