共用方式為


Size 結構

定義

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

建構函式

Size(Double)
Size(Double, Double)
Size(Vector2)

欄位

Zero

屬性

Height
IsZero
Width

方法

Deconstruct(Double, Double)
Equals(Object)
Equals(Size)
GetHashCode()
ToString()
TryParse(String, Size)

運算子

Addition(Size, Size)
Division(Size, Double)
Equality(Size, Size)
Explicit(Size to Point)
Implicit(Size to SizeF)
Inequality(Size, Size)
Multiply(Size, Double)
Subtraction(Size, Size)

擴充方法

Lerp(Size, Size, Double)
AdjustForFill(Size, Rect, IView)

適用於