Manipulator2D(Int32, Single, Single) 建構函式

定義

使用指定的屬性建立新的 Manipulator2D 物件。Creates a new Manipulator2D object with the specified properties.

public:
 Manipulator2D(int id, float x, float y);
public Manipulator2D (int id, float x, float y);
new System.Windows.Input.Manipulations.Manipulator2D : int * single * single -> System.Windows.Input.Manipulations.Manipulator2D
Public Sub New (id As Integer, x As Single, y As Single)

參數

id
Int32

這個操作工具的唯一識別碼。The unique ID for this manipulator.

x
Single

操作工具的 X 座標。The x-coordinate of the manipulator.

y
Single

操作工具的 Y 座標。The y-coordinate of the manipulator.

例外狀況

x-座標或 y-座標可為 float.NaNfloat.PositiveInfinityfloat.NegativeInfinityThe x-coordinate or y-coordinate are float.NaN, float.PositiveInfinity, or float.NegativeInfinity. 這些值全部無效。These values are all invalid.

備註

X 和 y 參數必須是有限的數位。The x and y parameters must both be a finite number.

適用於