Struct Size
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Mars.Interfaces.dll
Syntax
Constructors
|
Improve this Doc
View Source
Size(Position)
Create a new Size object from a point
Initializes a new instance of the Size class from
the specified Position.
Declaration
Parameters
|
Improve this Doc
View Source
Size(Double, Double)
Create a new Size object of the specified dimension
Initializes a new instance of the
Size class from
the specified dimensions.
Declaration
public Size(double width, double height)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
System.Double |
height |
|
Fields
|
Improve this Doc
View Source
Empty
Initializes a new instance of the
Size class.
Declaration
public static readonly Size Empty
Field Value
Properties
|
Improve this Doc
View Source
Height
Vertical dimension
Represents the vertical component of this
Size.
Declaration
public double Height { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
IsEmpty
Tests whether this
Size has zero
width and height.
Declaration
public readonly bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Width
Represents the horizontal component of this
Size.
Declaration
public double Width { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
Add(Size, Size)
Performs vector addition of two Size objects.
Declaration
public static Size Add(Size sz1, Size sz2)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Size)
Declaration
public bool Equals(Size other)
Parameters
Type |
Name |
Description |
Size |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Tests to see whether the specified object is a
Size with the same dimensions as this Size.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Subtract(Size, Size)
Contracts a System.Drawing.Size by another System.Drawing.Size .
Declaration
public static Size Subtract(Size sz1, Size sz2)
Parameters
Returns
|
Improve this Doc
View Source
ToString()
Creates a human-readable string that represents this
Size.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Addition(Size, Size)
Performs vector addition of two Size objects.
Declaration
public static Size operator +(Size sz1, Size sz2)
Parameters
Returns
|
Improve this Doc
View Source
Division(Size, Double)
Divides
Size by an
System.Int32 producing
Size.
Declaration
public static Size operator /(Size left, double right)
Parameters
Type |
Name |
Description |
Size |
left |
Dividend of type Size. |
System.Double |
right |
Divisor of type System.Int32. |
Returns
Type |
Description |
Size |
Result of type Size. |
|
Improve this Doc
View Source
Division(Size, Single)
Divides
Size by a
System.Single producing
Size.
Declaration
public static Size operator /(Size left, float right)
Parameters
Type |
Name |
Description |
Size |
left |
Dividend of type Size. |
System.Single |
right |
Divisor of type System.Int32. |
Returns
Type |
Description |
Size |
Result of type Size. |
|
Improve this Doc
View Source
Equality(Size, Size)
Tests whether two
Size objects
are identical.
Declaration
public static bool operator ==(Size sz1, Size sz2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Explicit(Size to Position)
Declaration
public static explicit operator Position(Size size)
Parameters
Type |
Name |
Description |
Size |
size |
|
Returns
|
Improve this Doc
View Source
Inequality(Size, Size)
Tests whether two Size objects are different.
Declaration
public static bool operator !=(Size sz1, Size sz2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Multiply(Size, Double)
Multiplies
Size by an
System.Int32 producing
Size.
Declaration
public static Size operator *(Size left, double right)
Parameters
Type |
Name |
Description |
Size |
left |
Multiplicand of type Size. |
System.Double |
right |
Multiplier of type System.Int32. |
Returns
Type |
Description |
Size |
Product of type Size. |
|
Improve this Doc
View Source
Multiply(Size, Single)
Multiplies
Size by a
System.Single producing
Size.
Declaration
public static Size operator *(Size left, float right)
Parameters
Type |
Name |
Description |
Size |
left |
Multiplicand of type Size. |
System.Single |
right |
Multiplier of type System.Single. |
Returns
Type |
Description |
Size |
Product of type Size. |
|
Improve this Doc
View Source
Multiply(Double, Size)
Multiplies a
Size by an
System.Int32 producing
Size.
Declaration
public static Size operator *(double left, Size right)
Parameters
Type |
Name |
Description |
System.Double |
left |
Multiplier of type System.Int32. |
Size |
right |
Multiplicand of type Size. |
Returns
Type |
Description |
Size |
Product of type Size. |
|
Improve this Doc
View Source
Multiply(Single, Size)
Multiplies
Size by a
System.Single producing
Size.
Declaration
public static Size operator *(float left, Size right)
Parameters
Type |
Name |
Description |
System.Single |
left |
Multiplier of type System.Single. |
Size |
right |
Multiplicand of type Size. |
Returns
Type |
Description |
Size |
Product of type Size. |
|
Improve this Doc
View Source
Subtraction(Size, Size)
Declaration
public static Size operator -(Size sz1, Size sz2)
Parameters
Returns
Extension Methods