SizeF.ToSize 方法

定義

SizeF 結構轉換成 Size 結構。Converts a SizeF structure to a Size structure.

public:
 System::Drawing::Size ToSize();
public System.Drawing.Size ToSize ();
member this.ToSize : unit -> System.Drawing.Size
Public Function ToSize () As Size

傳回

Size 結構。A Size structure.

備註

結構會藉由將的SizeSizeF截斷到下一個較低的整數值, 而轉換成結構。 SizeFThe SizeF structure is converted to a Size structure by truncating the values of the SizeF to the next lower integer values.

適用於