Size.ToString Method ()

 

Returns a String that represents this Size object.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public override string ToString()

Return Value

Type: System.String

A String that specifies the width followed by the height.

If the Width property is set to 30 and the Height property is set to 40, the ToString method returns a string that says "30, 40".

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: