Export (0) Print
Expand All

SizeF class

Applies to: desktop apps only

The SizeF class encapsulates a Width and Height dimension in a 2-D coordinate system. The SizeF class uses floating point coordinates.

SizeF has these types of members:

Constructors

The SizeF class has these constructors.

ConstructorDescription
SizeF::SizeF()

Creates a SizeF object and initializes the members to zero. This is the default constructor.

SizeF::SizeF(REAL,REAL)

Creates a SizeF object and initializes its Width and Height data members.

SizeF::SizeF(SizeF&)

Creates a SizeF object and initializes its members by copying the members of another SizeF object.

 

Methods

The SizeF class has these methods.

MethodDescription
SizeF::Empty

The SizeF::Empty method determines whether a SizeF object is empty.

SizeF::Equals

The SizeF::Equals method determines whether two SizeF objects are equal.

SizeF::operator-(SizeF&)

The SizeF::operator- method subtracts the Width and Height data members of two SizeF objects.

SizeF::operator+(SizeF&)

The SizeF::operator+ method adds the Width and Height data members of two SizeF objects.

 

Data Members

The following table lists the members exposed by the SizeF object.

Data MembersTypeDescription
HeightREALVertical measurement of the SizeF object.
WidthREALHorizontal measurement of the SizeF object.

 

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft