Struct Rectangle

Struct Rectangle

Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.1.0)

長方形の位置とサイズを表す4つの整数のセットを格納します。

public struct Rectangle

継承メンバー

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

コンストラクター

Rectangle(int, int, int, int)

指定された位置とサイズでAspose.OCR.Rectangle構造体の新しいインスタンスを初期化します。

public Rectangle(int x, int y, int width, int height)

パラメーター

x int

長方形の左上隅のx座標。

y int

長方形の左上隅のy座標。

width int

長方形の幅。

height int

長方形の高さ。

フィールド

Height

長方形の幅。

public int Height

フィールド値

int

Width

長方形の高さ。

public int Width

フィールド値

int

X

長方形のx位置。

public int X

フィールド値

int

Y

長方形のy位置。

public int Y

フィールド値

int

プロパティ

Bottom

Aspose.OCR.Rectangle.YとAspose.OCR.Rectangle.Heightプロパティ値の合計であるy座標を取得または設定します。

public int Bottom { get; set; }

プロパティ値

int

Empty

Aspose.OCR.Rectangle.X、Aspose.OCR.Rectangle.Y、Aspose.OCR.Rectangle.Width、およびAspose.OCR.Rectangle.Height値がゼロに設定されたAspose.OCR.Rectangle構造体の新しいインスタンスを取得します。

public static Rectangle Empty { get; }

プロパティ値

Rectangle

IsEmpty

このAspose.OCR.Rectangleのすべての数値プロパティがゼロの値を持つかどうかを示す値を取得します。

public bool IsEmpty { get; }

プロパティ値

bool

Left

このAspose.OCR.Rectangle構造体の左端のx座標を取得または設定します。

public int Left { get; set; }

プロパティ値

int

Right

Aspose.OCR.Rectangle.XとAspose.OCR.Rectangle.Widthプロパティ値の合計であるx座標を取得または設定します。

public int Right { get; set; }

プロパティ値

int

Top

このAspose.OCR.Rectangle構造体の上端のy座標を取得または設定します。

public int Top { get; set; }

プロパティ値

int

メソッド

Contains(int, int)

指定された点がこのAspose.OCR.Rectangle構造体内に含まれているかどうかを判断します。

public bool Contains(int x, int y)

パラメーター

x int

テストする点のx座標。

y int

テストする点のy座標。

戻り値

bool

このメソッドは、xyで定義された点がこのAspose.OCR.Rectangle構造体内に含まれている場合はtrueを返し、それ以外の場合はfalseを返します。

Equals(object)

objがこのAspose.OCR.Rectangle構造体と同じ位置とサイズのAspose.OCR.Rectangle構造体であるかどうかをテストします。

public override bool Equals(object obj)

パラメーター

obj object

テストするSystem.Object。

戻り値

bool

このメソッドは、objがAspose.OCR.Rectangle構造体であり、そのAspose.OCR.Rectangle.X、Aspose.OCR.Rectangle.Y、Aspose.OCR.Rectangle.Width、およびAspose.OCR.Rectangle.HeightプロパティがこのAspose.OCR.Rectangle構造体の対応するプロパティと等しい場合はtrueを返し、それ以外の場合はfalseを返します。

GetHashCode()

このAspose.OCR.Rectangle構造体のハッシュコードを返します。

public override int GetHashCode()

戻り値

int

この長方形のハッシュコードを表す整数。

ToString()

このAspose.OCR.Rectangleの属性を人間が読める文字列に変換します。

public override string ToString()

戻り値

string

このAspose.OCR.Rectangle構造体の位置、幅、および高さを含む文字列。

演算子

operator ==(Rectangle, Rectangle)

2つのAspose.OCR.Rectangle構造体が等しい位置とサイズを持つかどうかをテストします。

public static bool operator ==(Rectangle left, Rectangle right)

パラメーター

left Rectangle

等号演算子の左側にあるAspose.OCR.Rectangle構造体。

right Rectangle

等号演算子の右側にあるAspose.OCR.Rectangle構造体。

戻り値

bool

この演算子は、2つのAspose.OCR.Rectangle構造体が等しいAspose.OCR.Rectangle.X、Aspose.OCR.Rectangle.Y、Aspose.OCR.Rectangle.Width、およびAspose.OCR.Rectangle.Heightプロパティを持つ場合はtrueを返します。

operator !=(Rectangle, Rectangle)

2つのAspose.OCR.Rectangle構造体が位置またはサイズで異なるかどうかをテストします。

public static bool operator !=(Rectangle left, Rectangle right)

パラメーター

left Rectangle

不等号演算子の左側にあるAspose.OCR.Rectangle構造体。

right Rectangle

不等号演算子の右側にあるAspose.OCR.Rectangle構造体。

戻り値

bool

この演算子は、2つのAspose.OCR.Rectangle構造体のいずれかのAspose.OCR.Rectangle.X、Aspose.OCR.Rectangle.Y、Aspose.OCR.Rectangle.WidthまたはAspose.OCR.Rectangle.Heightプロパティが不等である場合はtrueを返し、それ以外の場合はfalseを返します。

 日本語