点击或拖拽改变大小

RSize 结构

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

命名空间:  DSkin.Html.Adapters.Entities
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public struct RSize

RSize 类型公开以下成员。

构造函数
  名称说明
公共方法RSize(RPoint)
Initializes a new instance of the RSize structure from the specified RPoint structure.
公共方法RSize(RSize)
Initializes a new instance of the RSize structure from the specified existing RSize structure.
公共方法RSize(Double, Double)
Initializes a new instance of the RSize structure from the specified dimensions.
Top
属性
  名称说明
公共属性Height
Gets or sets the vertical component of this RSize structure.
公共属性IsEmpty
Gets a value that indicates whether this RSize structure has zero width and height.
公共属性Width
Gets or sets the horizontal component of this RSize structure.
Top
方法
  名称说明
公共方法静态成员Add
Adds the width and height of one RSize structure to the width and height of another RSize structure.
公共方法Equals
Tests to see whether the specified object is a RSize structure with the same dimensions as this RSize structure.
(重写 ValueTypeEquals(Object).)
公共方法GetHashCode
Returns a hash code for this RSize structure.
(重写 ValueTypeGetHashCode.)
公共方法静态成员Subtract
Subtracts the width and height of one RSize structure from the width and height of another RSize structure.
公共方法ToPointF
Converts a RSize structure to a RPoint structure.
公共方法ToString
Creates a human-readable string that represents this RSize structure.
(重写 ValueTypeToString.)
Top
运算符
  名称说明
公共运算符静态成员Addition
Adds the width and height of one RSize structure to the width and height of another RSize structure.
公共运算符静态成员Equality
Tests whether two RSize structures are equal.
公共运算符静态成员(RSize to RPoint)
Converts the specified RSize structure to a RPoint structure.
公共运算符静态成员Inequality
Tests whether two RSize structures are different.
公共运算符静态成员Subtraction
Subtracts the width and height of one RSize structure from the width and height of another RSize structure.
Top
字段
  名称说明
公共字段静态成员Empty
Gets a RSize structure that has a Height and Width value of 0.
Top
扩展方法
  名称说明
公共扩展器方法FormatDateTime
将数据以时间格式并对其格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法FormatNumber
将数据以数值方式对数据格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法FormatString
将数据以字符串格式对数据格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法Sleep
异步延迟执行代码,只能在主线程中调用
(由 DuiControlExtensions 定义。)
公共扩展器方法ToBool
将数据转换成Bool,如果转换失败返回False
(由 ObjectExtenstions 定义。)
公共扩展器方法ToDateTime
将数据转换成DateTime,如果转换失败返回空的时间
(由 ObjectExtenstions 定义。)
公共扩展器方法ToDouble
将数据转换成Double,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToEnumT
将数据转换成枚举,如果转换失败则返回默认值
(由 ObjectExtenstions 定义。)
公共扩展器方法ToFloat
将数据转换成Float,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToInt已重载。
将数据转换成int,如果转换失败返回0
(由 ObjectExtenstions 定义。)
公共扩展器方法ToInt(Int32)已重载。
数据转换成int,如果转换失败,返回errorResult
(由 ObjectExtenstions 定义。)
公共扩展器方法ToJson
将对象序列化成Json字符串
(由 JsonHelper 定义。)
公共扩展器方法ToLong
将数据转换成Long,如果转换失败返回0
(由 ObjectExtenstions 定义。)
Top
参见