Size.Size constructor

Applies to Windows and Windows Phone

Initializes a new instance of the Size structure and assigns it an initial width and height.

Syntax


public:
Size(
  float width, 
  float height
)

Parameters

width

Type: float

The initial width of the instance of Size.

height

Type: float

The initial height of the instance of Size.

Remarks

JavaScript:  In JavaScript, a Size Rect is an object with width and height data properties. Use the syntax shown in Size to set values. You can't call this constructor in JavaScript.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::Foundation

Metadata

Platform.winmd

See also

Size
Size constructor (C# and Visual Basic)

 

 

Show:
© 2014 Microsoft