Struct
SizeF

Represents a dimension in 2D coordinate space

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(SizeFConverter))]
public struct SizeF

Constructors

SizeF(PointF)

Initializes a new instance of the SizeF struct.

Declaration

cs-api-definition
public SizeF(PointF point)

Parameters

point

PointF

The point.

SizeF(Size)

Initializes a new instance of the SizeF struct.

Declaration

cs-api-definition
public SizeF(Size size)

Parameters

size

Size

The size.

SizeF(SizeF)

Initializes a new instance of the SizeF struct.

Declaration

cs-api-definition
public SizeF(SizeF size)

Parameters

size

SizeF

The size.

SizeF(float, float)

Initializes a new instance of the SizeF struct.

Declaration

cs-api-definition
public SizeF(float width, float height)

Parameters

width

float

The width.

height

float

The height.

Fields

Empty

An empty instance.

Declaration

cs-api-definition
public static readonly SizeF Empty

Field Value

SizeF

Properties

Height

Gets or sets the height.

Declaration

cs-api-definition
public float Height { get; set; }

Property Value

float

The height.

IsEmpty

Gets a value indicating whether this instance is empty.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsEmpty { get; }

Property Value

bool

true if this instance is empty; otherwise, false.

Width

Gets or sets the width.

Declaration

cs-api-definition
public float Width { get; set; }

Property Value

float

The width.

Methods

Add(SizeF, SizeF)

Adds the specified size.

Declaration

cs-api-definition
public static SizeF Add(SizeF size1, SizeF size2)

Parameters

size1

SizeF

The first size.

size2

SizeF

The second size.

Returns

SizeF

Equals(object)

Determines whether the specified object, is equal to this instance.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides ValueType.GetHashCode()

Subtract(SizeF, SizeF)

Subtracts the specified size.

Declaration

cs-api-definition
public static SizeF Subtract(SizeF size1, SizeF size2)

Parameters

size1

SizeF

The first size.

size2

SizeF

The second size.

Returns

SizeF

The result of the substraction.

ToPointF()

Converts to PointF.

Declaration

cs-api-definition
public PointF ToPointF()

Returns

PointF

The PointF object.

ToSize()

Converts to Size.

Declaration

cs-api-definition
public Size ToSize()

Returns

Size

The Size object.

ToString()

Converts to string.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides ValueType.ToString()

Operators

explicit operator PointF(SizeF)

Performs an explicit conversion from SizeF to PointF.

Declaration

cs-api-definition
public static explicit operator PointF(SizeF size)

Parameters

size

SizeF

The size.

Returns

PointF

The result of the conversion.

operator !=(SizeF, SizeF)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(SizeF size1, SizeF size2)

Parameters

size1

SizeF

The first size.

size2

SizeF

The second size.

Returns

bool

The result of the operator.

operator +(SizeF, SizeF)

Implements the operator +.

Declaration

cs-api-definition
public static SizeF operator +(SizeF size1, SizeF size2)

Parameters

size1

SizeF

The first size.

size2

SizeF

The second size.

Returns

SizeF

The result of the operator.

operator -(SizeF, SizeF)

Implements the operator -.

Declaration

cs-api-definition
public static SizeF operator -(SizeF size1, SizeF size2)

Parameters

size1

SizeF

The first size.

size2

SizeF

The second size.

Returns

SizeF

The result of the operator.

operator ==(SizeF, SizeF)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(SizeF size1, SizeF size2)

Parameters

size1

SizeF

The first size.

size2

SizeF

The second size.

Returns

bool

The result of the operator.