SizeHelper.FromDimensions(Single, Single) 方法

定義

根據寬度和高度元素值建立新的 Size 。 C# 和 Microsoft Visual Basic 程式碼應該改用 Size (Double、Double) 建構函式。

public:
 static Size FromDimensions(float width, float height);
 static Size FromDimensions(float const& width, float const& height);
public static Size FromDimensions(float width, float height);
function fromDimensions(width, height)
Public Shared Function FromDimensions (width As Single, height As Single) As Size

參數

width
Single

float

初始 Width

height
Single

float

初始 Height

傳回

建立 的大小

適用於