SizeF constructor

init

Constructs a new instance of SizeF

def __init__(self):
    ...

init

Initializes a new instance of the SizeF structure from the specified SizeF.

def __init__(self, size):
    ...
ParameterTypeDescription
sizeSizeFThe SizeF from which to create the new SizeF.

init

Initializes a new instance of the SizeF structure from the specified PointF.

def __init__(self, point):
    ...
ParameterTypeDescription
pointPointFThe PointF from which to initialize this SizeF.

init

Initializes a new instance of the SizeF structure from the specified dimensions.

def __init__(self, width, height):
    ...
ParameterTypeDescription
widthfloatThe width component of the new SizeF.
heightfloatThe height component of the new SizeF.

See Also