Show / Hide Table of Contents

    Class PanEventArgs

    FormsGestures Pan event arguments.

    Inheritance
    Object
    EventArgs
    BaseGestureEventArgs
    PanEventArgs
    Inherited Members
    BaseGestureEventArgs.Event
    BaseGestureEventArgs.Handled
    BaseGestureEventArgs.Listener
    BaseGestureEventArgs.Cancelled
    BaseGestureEventArgs.ElementPosition
    BaseGestureEventArgs.ElementTouches
    BaseGestureEventArgs.WindowTouches
    BaseGestureEventArgs.NumberOfTouches
    BaseGestureEventArgs.Center(Point[])
    BaseGestureEventArgs.Equals(BaseGestureEventArgs)
    BaseGestureEventArgs.ValueFrom(BaseGestureEventArgs)
    BaseGestureEventArgs.Contains(Point)
    BaseGestureEventArgs.IsTouchCenterInView
    EventArgs.Empty
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: FormsGestures
    Assembly: FormsGestures.dll
    Syntax
    public class PanEventArgs : BaseGestureEventArgs

    Constructors

    PanEventArgs(PanEventArgs, Listener)

    constructs new PanEventArgs

    Declaration
    public PanEventArgs(PanEventArgs source = null, Listener newListener = null)
    Parameters
    Type Name Description
    PanEventArgs source
    Listener newListener

    Properties

    DeltaDistance

    distance since last sample of pan motion

    Declaration
    public virtual Point DeltaDistance { get; protected set; }
    Property Value
    Type Description
    Point

    TotalDistance

    total distance of pan motion

    Declaration
    public virtual Point TotalDistance { get; protected set; }
    Property Value
    Type Description
    Point

    Velocity

    currently velocity of pan motion

    Declaration
    public virtual Point Velocity { get; protected set; }
    Property Value
    Type Description
    Point

    Methods

    CalculateDistances(BaseGestureEventArgs)

    calculates the distance traversed since last sample

    Declaration
    protected void CalculateDistances(BaseGestureEventArgs previous)
    Parameters
    Type Name Description
    BaseGestureEventArgs previous

    Equals(PanEventArgs)

    Equality test

    Declaration
    public bool Equals(PanEventArgs other)
    Parameters
    Type Name Description
    PanEventArgs other
    Returns
    Type Description
    Boolean

    Equals(Object)

    Equality test

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    BaseGestureEventArgs.Equals(Object)

    GetHashCode()

    returns hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    BaseGestureEventArgs.GetHashCode()

    ToString()

    Returns a String that represents the current PanEventArgs.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents the current PanEventArgs.

    Overrides
    Object.ToString()

    ValueFrom(PanEventArgs)

    Updates properties from the values from another instance

    Declaration
    public void ValueFrom(PanEventArgs source)
    Parameters
    Type Name Description
    PanEventArgs source

    Extension Methods

    DebugExtensions.AddToCensus(Object)
    DebugExtensions.RemoveFromCensus(Object)
    ReflectionExtensions.GetProperties(Object)
    ReflectionExtensions.GetProperty(Object, String)
    ReflectionExtensions.PropertyNames(Object)
    ReflectionExtensions.PropertyExists(Object, String)
    ReflectionExtensions.HasProperty(Object, String)
    ReflectionExtensions.GetPropertyValue(Object, String)
    ReflectionExtensions.SetPropertyValue(Object, String, Object)
    ReflectionExtensions.GetFieldValue(Object, String)
    ReflectionExtensions.SetFieldValue(Object, String, Object)
    ReflectionExtensions.CallMethod(Object, String, Object[])
    Back to top Copyright © 2018 42nd Parallel