Manipulation2DStartedEventArgs 類別

定義

表示與 Started 事件一起傳送的資料。

public ref class Manipulation2DStartedEventArgs : EventArgs
public class Manipulation2DStartedEventArgs : EventArgs
type Manipulation2DStartedEventArgs = class
    inherit EventArgs
Public Class Manipulation2DStartedEventArgs
Inherits EventArgs
繼承
Manipulation2DStartedEventArgs

範例

在下列範例中,事件的事件處理常式 Started 會檢查是否正在執行慣性處理,如果是,則會停止它。

#region OnManipulationStarted
private void OnManipulationStarted(object sender, Manipulation2DStartedEventArgs e)
{
    if (inertiaProcessor.IsRunning)
    {
        inertiaProcessor.Complete(Timestamp);
    }
}
#endregion
#region Timestamp
private long Timestamp
{
    get
    {
        // Get timestamp in 100-nanosecond units.
        double nanosecondsPerTick = 1000000000.0 / System.Diagnostics.Stopwatch.Frequency;
        return (long)(System.Diagnostics.Stopwatch.GetTimestamp() / nanosecondsPerTick / 100.0);
    }
}
#endregion

屬性

OriginX

取得原點的 X 座標。

OriginY

取得原點的 Y 座標。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於