PointF 構造体
定義
2 次元平面に点を定義する浮動小数点座標ペア (x 座標と y 座標) を表します。Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
public value class PointF : IEquatable<System::Drawing::PointF>
public value class PointF
public struct PointF : IEquatable<System.Drawing.PointF>
public struct PointF
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public struct PointF
type PointF = struct
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type PointF = struct
Public Structure PointF
Implements IEquatable(Of PointF)
Public Structure PointF
- 継承
- 属性
- 実装
注釈
をに変換するに PointF Point は、 Point.Round またはを使用し Point.Truncate ます。To convert a PointF to a Point, use Point.Round or Point.Truncate.
コンストラクター
PointF(Single, Single) |
座標を指定して、PointF クラスの新しいインスタンスを初期化します。Initializes a new instance of the PointF class with the specified coordinates. |
フィールド
Empty |
メンバーのデータが初期化されていない状態の PointF クラスの新しいインスタンスを表します。Represents a new instance of the PointF class with member data left uninitialized. |
プロパティ
IsEmpty |
この PointF が空かどうかを示す値を取得します。Gets a value indicating whether this PointF is empty. |
X |
この PointF の x 座標を取得または設定します。Gets or sets the x-coordinate of this PointF. |
Y |
この PointF の y 座標を取得または設定します。Gets or sets the y-coordinate of this PointF. |
メソッド
Add(PointF, Size) |
指定の PointF を指定の Size だけ移動します。Translates a given PointF by the specified Size. |
Add(PointF, SizeF) |
指定の PointF を指定の SizeF だけ移動します。Translates a given PointF by a specified SizeF. |
Equals(Object) |
この PointF が、指定した Object と同じ座標を含んでいるかどうかを示します。Specifies whether this PointF contains the same coordinates as the specified Object. |
Equals(PointF) |
現在のオブジェクトが、同じ型の別のオブジェクトと等しいかどうかを示します。Indicates whether the current object is equal to another object of the same type. |
GetHashCode() |
この PointF 構造体のハッシュ コードを返します。Returns a hash code for this PointF structure. |
Subtract(PointF, Size) |
PointF を指定のサイズだけ負の方向へ移動します。Translates a PointF by the negative of a specified size. |
Subtract(PointF, SizeF) |
PointF を指定のサイズだけ負の方向へ移動します。Translates a PointF by the negative of a specified size. |
ToString() |
この PointF をユーザーが判読できる文字列に変換します。Converts this PointF to a human readable string. |
演算子
Addition(PointF, Size) |
PointF を指定の Size だけ移動します。Translates a PointF by a given Size. |
Addition(PointF, SizeF) |
PointF を指定の SizeF だけ移動します。Translates the PointF by the specified SizeF. |
Equality(PointF, PointF) |
2 つの PointF 構造体を比較します。Compares two PointF structures. この結果は、2 つの X 構造体の Y プロパティと PointF プロパティの値が等しいかどうかを示します。The result specifies whether the values of the X and Y properties of the two PointF structures are equal. |
Inequality(PointF, PointF) |
指定した点の座標が等しくないかどうかを確認します。Determines whether the coordinates of the specified points are not equal. |
Subtraction(PointF, Size) |
PointF を指定の Size だけ負の方向へ移動します。Translates a PointF by the negative of a given Size. |
Subtraction(PointF, SizeF) |
PointF を指定の SizeF だけ負の方向へ移動します。Translates a PointF by the negative of a specified SizeF. |