GDI Plus Size Foundation Class

The gpSize class stores an ordered pair of numbers, typically the width and height of a rectangle.

Category Reporting

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Output\GDIplus

Class

gpSize

Base Class

Custom

Class Library

_GDIPLUS.vcx

Parent Class

gpBase (GDI Plus Base Foundation Class)

Remarks

The following table lists public properties and methods added by this class to its parent class, gpBase. This class also implements the Clone and Init methods.

Properties and methods Description

Clone Method

Clones a Size object.

Syntax: ? THIS.Clone(toGpSize)

Return Values: Logical, representing success or failure.

Parameters: 

toGpSize, required, the gpSize-based object to clone.

Create Method

Creates a Size object from specified coordinates.

Syntax: THIS.Create(tW, tH)

Return Values: Logical, representing success or failure.

Parameters: 

tW, required, the width for the rectangle to create.

tH, required, the height for the rectangle to create.

GdipSize Property

String representing the GDI+ Size structure (composed of two 32-bit integers).

Default: Empty.

GdipSizeF Property

String representing the GDI+ Size structure (composed of two 32-bit single-precision float values).

Default: Empty.

H Property

Height value for the Size object.

Default:0.

Init Method

Constructs a Size object during initialization if passed appropriate arguments.

Syntax: CREATEOBJECT("gpSize" [,tW_Size, tH])

Return Values: Logical, representing success or failure. If the method fails, the object does not instantiate.

Parameters: 

tW_Size, required if immediate creation of the object is requested, represents the width for the Size object, or another Size object to be cloned.

tH, required if the first parameters was not a Size object to be cloned.

Set Method

Sets a Size object's coordinates from individual components.

Syntax: THIS.Set(tW, tH)

Return Values: Logical, representing success or failure.

Parameters: 

tW, required, the width of the Size object.

tH, required, the height of the Size object.

W Property

Width value for the Width object.

Default:0.

See Also

Reference

Visual FoxPro Foundation Classes A-Z
GDI Plus API Wrapper Foundation Classes

Concepts

Guidelines for Using Visual FoxPro Foundation Classes