RSize

TheArtOfDev.HtmlRenderer.Adapters.Entities

Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.

コンストラクター

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.
RSize(RPoint)

Initializes a new instance of the RSize structure from the specified RPoint structure.

pt
The RPoint structure from which to initialize this RSize structure.
RSize(RSize)

Initializes a new instance of the RSize structure from the specified existing RSize structure.

size
The RSize structure from which to create the new RSize structure.

プロパティ

Height : double

Gets or sets the vertical component of this RSize structure.

戻り値: The vertical component of this RSize structure, typically measured in pixels.

IsEmpty : bool

Gets a value that indicates whether this RSize structure has zero width and height.

戻り値: This property returns true when this RSize structure has both a width and height of zero; otherwise, false.

Width : double

Gets or sets the horizontal component of this RSize structure.

戻り値: The horizontal component of this RSize structure, typically measured in pixels.

メソッド

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.

戻り値: 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.

戻り値: 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.

戻り値: 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.

戻り値: 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.

戻り値: 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

戻り値: 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.

戻り値: 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.

戻り値: 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.

戻り値: A RSize structure that is a result of the subtraction operation.

ToPointF() : RPoint

Converts a RSize structure to a RPoint structure.

戻り値: Returns a RPoint structure.

ToString() : string

Creates a human-readable string that represents this RSize structure.

戻り値: A string that represents this RSize structure.

フィールド

Empty : RSize

Gets a RSize structure that has a Height and Width value of 0.

戻り値: A RSize structure that has a Height and Width value of 0.