Class Size
Inheritance
System.Object
Size
Assembly: Syncfusion.Compression.Portable.dll
Syntax
public sealed class Size : ValueType
Constructors
Size(Point)
Declaration
Parameters
Type |
Name |
Description |
Point |
pt |
|
Size(Int32, Int32)
Declaration
public Size(int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
|
System.Int32 |
height |
|
Fields
Empty
Declaration
public static readonly Size Empty
Field Value
Properties
Height
Declaration
public int Height { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Width
Declaration
public int Width { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Add(Size, Size)
Declaration
public static Size Add(Size sz1, Size sz2)
Parameters
Returns
Ceiling(SizeF)
Declaration
public static Size Ceiling(SizeF value)
Parameters
Type |
Name |
Description |
SizeF |
value |
|
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Round(SizeF)
Declaration
public static Size Round(SizeF value)
Parameters
Type |
Name |
Description |
SizeF |
value |
|
Returns
Subtract(Size, Size)
Declaration
public static Size Subtract(Size sz1, Size sz2)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Truncate(SizeF)
Declaration
public static Size Truncate(SizeF value)
Parameters
Type |
Name |
Description |
SizeF |
value |
|
Returns
Operators
Addition(Size, Size)
Declaration
public static Size operator +(Size sz1, Size sz2)
Parameters
Returns
Equality(Size, Size)
Declaration
public static bool operator ==(Size sz1, Size sz2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Explicit(Size to Point)
Declaration
public static explicit operator Point(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
Implicit(Size to SizeF)
Declaration
public static implicit operator SizeF(Size p)
Parameters
Type |
Name |
Description |
Size |
p |
|
Returns
Inequality(Size, Size)
Declaration
public static bool operator !=(Size sz1, Size sz2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Subtraction(Size, Size)
Declaration
public static Size operator -(Size sz1, Size sz2)
Parameters
Returns