共用方式為


Rect 結構

定義

public value class Rect
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Graphics.Converters.RectTypeConverter))]
public struct Rect
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Graphics.Converters.RectTypeConverter))>]
type Rect = struct
Public Structure Rect
繼承
Rect
屬性

建構函式

Rect(Double, Double, Double, Double)
Rect(Point, Size)

欄位

Zero

屬性

Bottom
Center
Height
IsEmpty
Left
Location
Right
Size
Top
Width
X
Y

方法

Contains(Double, Double)
Contains(Point)
Contains(Rect)
Deconstruct(Double, Double, Double, Double)
Equals(Object)
Equals(Rect)
FromLTRB(Double, Double, Double, Double)
GetHashCode()
Inflate(Double, Double)
Inflate(Size)
Intersect(Rect)
Intersect(Rect, Rect)
IntersectsWith(Rect)
Offset(Double, Double)
Offset(Point)
Round()
ToString()
TryParse(String, Rect)
Union(Rect)
Union(Rect, Rect)

運算子

Equality(Rect, Rect)
Implicit(Rect to RectF)
Inequality(Rect, Rect)

擴充方法

Lerp(Rect, Rect, Double)

適用於