Class SizeF
Represents a dimension in 2D coordinate space
Inheritance
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Documents.dll
Syntax
public sealed class SizeF : ValueType
Constructors
SizeF(Single, Single)
Initializes a new instance of the SizeF struct.
Declaration
public SizeF(float width, float height)
Parameters
System.Single
width
The width. |
System.Single
height
The height. |
SizeF(Size)
Initializes a new instance of the SizeF struct.
Declaration
public SizeF(Size size)
Parameters
System.Windows.Size
size
The size. |
SizeF(PointF)
Initializes a new instance of the SizeF struct.
Declaration
public SizeF(PointF point)
Parameters
PointF
point
The point. |
SizeF(SizeF)
Initializes a new instance of the SizeF struct.
Declaration
public SizeF(SizeF size)
Parameters
SizeF
size
The size. |
Fields
Empty
Properties
Height
Gets or sets the height.
Declaration
public float Height { get; set; }
Property Value
System.Single
The height. |
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
Width
Gets or sets the width.
Declaration
public float Width { get; set; }
Property Value
System.Single
The width. |
Methods
Add(SizeF, SizeF)
Adds the specified size.
Declaration
public static SizeF Add(SizeF size1, SizeF size2)
Parameters
SizeF
size1
The first size. |
SizeF
size2
The second size. |
Returns
SizeF
|
Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with this instance. |
Returns
System.Boolean
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Subtract(SizeF, SizeF)
Subtracts the specified size.
Declaration
public static SizeF Subtract(SizeF size1, SizeF size2)
Parameters
SizeF
size1
The first size. |
SizeF
size2
The second size. |
Returns
SizeF
The result of the substraction. |
ToPointF()
ToSize()
Converts to System.Windows.Size.
Declaration
public Size ToSize()
Returns
System.Windows.Size
The System.Windows.Size object. |
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |
Operators
Addition(SizeF, SizeF)
Implements the operator +.
Declaration
public static SizeF operator +(SizeF size1, SizeF size2)
Parameters
SizeF
size1
The first size. |
SizeF
size2
The second size. |
Returns
SizeF
The result of the operator. |
Equality(SizeF, SizeF)
Implements the operator ==.
Declaration
public static bool operator ==(SizeF size1, SizeF size2)
Parameters
SizeF
size1
The first size. |
SizeF
size2
The second size. |
Returns
System.Boolean
The result of the operator. |
Explicit(SizeF to PointF)
Declaration
public static explicit operator PointF(SizeF size)
Parameters
SizeF
size
The size. |
Returns
PointF
The result of the conversion. |
Inequality(SizeF, SizeF)
Implements the operator !=.
Declaration
public static bool operator !=(SizeF size1, SizeF size2)
Parameters
SizeF
size1
The first size. |
SizeF
size2
The second size. |
Returns
System.Boolean
The result of the operator. |
Subtraction(SizeF, SizeF)
Implements the operator -.
Declaration
public static SizeF operator -(SizeF size1, SizeF size2)
Parameters
SizeF
size1
The first size. |
SizeF
size2
The second size. |
Returns
SizeF
The result of the operator. |