RSize
Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.
Construtores
RSize(double, double)
Initializes a new instance of the RSize structure from the specified dimensions.
- width
- The width component of the new RSize structure.
- height
- The height component of the new RSize structure.
Propriedades
Height : double
Gets or sets the vertical component of this RSize structure.
Retorna: The vertical component of this RSize structure, typically measured in pixels.
Métodos
Add(RSize, RSize) : RSize
Adds the width and height of one RSize structure to the width and height of another RSize structure.
- sz1
- The first RSize structure to add.
- sz2
- The second RSize structure to add.
Retorna: A RSize structure that is the result of the addition operation.
Equals(object) : bool
Tests to see whether the specified object is a RSize structure with the same dimensions as this RSize structure.
- obj
- The Object to test.
Retorna: This method returns true if is a RSize and has the same width and height as this RSize ; otherwise, false.
GetHashCode() : int
Returns a hash code for this RSize structure.
Retorna: An integer value that specifies a hash value for this RSize structure.
op_Addition(RSize, RSize) : RSize
Adds the width and height of one RSize structure to the width and height of another RSize structure.
- sz1
- The first RSize structure to add.
- sz2
- The second RSize structure to add.
Retorna: A RSize structure that is the result of the addition operation.
op_Equality(RSize, RSize) : bool
Tests whether two RSize structures are equal.
- sz1
- The RSize structure on the left side of the equality operator.
- sz2
- The RSize structure on the right of the equality operator.
Retorna: This operator returns true if and have equal width and height; otherwise, false.
op_Explicit(RPoint) : RPoint
Converts the specified RSize structure to a RPoint structure.
- size
- The RSize structure to be converted
Retorna: The RPoint structure to which this operator converts.
op_Inequality(RSize, RSize) : bool
Tests whether two RSize structures are different.
- sz1
- The RSize structure on the left of the inequality operator.
- sz2
- The RSize structure on the right of the inequality operator.
Retorna: This operator returns true if and differ either in width or height; false if and are equal.
op_Subtraction(RSize, RSize) : RSize
Subtracts the width and height of one RSize structure from the width and height of another RSize structure.
- sz1
- The RSize structure on the left side of the subtraction operator.
- sz2
- The RSize structure on the right side of the subtraction operator.
Retorna: A RSize that is the result of the subtraction operation.
Subtract(RSize, RSize) : RSize
Subtracts the width and height of one RSize structure from the width and height of another RSize structure.
- sz1
- The RSize structure on the left side of the subtraction operator.
- sz2
- The RSize structure on the right side of the subtraction operator.
Retorna: A RSize structure that is a result of the subtraction operation.