点击或拖拽改变大小

Size 结构

[缺少 "T:CPF.Drawing.Size" 的 <summary> 文档]

命名空间:  CPF.Drawing
程序集:  CPF (在 CPF.dll 中) 版本:0.8.8.5
语法
C#
[SerializableAttribute]
[TypeConverterAttribute(typeof(SizeConverter))]
public struct Size : IFormattable

Size 类型公开以下成员。

构造函数
  名称说明
公共方法Size
Constructor which sets the size's initial values.
Top
属性
  名称说明
公共属性静态成员Empty
Empty - a static property which provides an Empty size. Width and Height are negative-infinity. This is the only situation where size can be negative.
公共属性Height
Height - Default is 0
公共属性IsEmpty
IsEmpty - this returns true if this size is the Empty size. Note: If size is 0 this Size still contains a 0 or 1 dimensional set of points, so this method should not be used to check for 0 area.
公共属性Width
Width - Default is 0
Top
方法
  名称说明
公共方法静态成员Add
公共方法静态成员Ceiling
公共方法Constrain
Constrains the size. 最小尺寸
公共方法Deflate
Deflates the size by a Thickness. 缩小
公共方法Equals(Object)
Equals - compares this Size with the passed in object. In this equality float.NaN is equal to itself, unlike in numeric equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.
(重写 ValueTypeEquals(Object).)
公共方法Equals(Size)
Equals - compares this Size with the passed in object. In this equality float.NaN is equal to itself, unlike in numeric equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail.
公共方法静态成员Equals(Size, Size)
相等和 == 不完全一致的,==是大约
公共方法GetHashCode
Returns the HashCode for this Size
(重写 ValueTypeGetHashCode.)
公共方法GetType (继承自 Object。)
公共方法Inflate
Inflates the size by a Thickness. 放大
公共方法静态成员Parse
公共方法静态成员Round
公共方法静态成员Subtract
公共方法ToString
Creates a string representation of this object based on the current culture.
(重写 ValueTypeToString.)
公共方法ToString(IFormatProvider)
Creates a string representation of this object based on the IFormatProvider passed in. If the provider is null, the CurrentCulture is used.
公共方法WithHeight
Returns a new Size with the same width and the specified height.
公共方法WithWidth
Returns a new Size with the same height and the specified width.
Top
运算符
  名称说明
公共运算符静态成员Addition
公共运算符静态成员Division
Scales a size.
公共运算符静态成员Equality
Compares two Size instances for exact equality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail. Furthermore, using this equality operator, float.NaN is not equal to itself.
公共运算符静态成员(String to Size)
w,h
公共运算符静态成员(Size to Vector)
Explicit conversion to Vector.
公共运算符静态成员(Size to Point)
Explicit conversion to Point
公共运算符静态成员Inequality
Compares two Size instances for exact inequality. Note that float values can acquire error when operated upon, such that an exact comparison between two values which are logically equal may fail. Furthermore, using this equality operator, float.NaN is not equal to itself.
公共运算符静态成员Multiply
Scales a size.
公共运算符静态成员Subtraction
Top
扩展方法
  名称说明
公共扩展器方法ConvertTo
类型转换
(由 ObjectExtenstions 定义。)
公共扩展器方法Delay
延迟操作
(由 ObjectExtenstions 定义。)
公共扩展器方法Equal
对象是否相等
(由 ObjectExtenstions 定义。)
公共扩展器方法GetCreationCode (由 ObjectExtenstions 定义。)
公共扩展器方法GetPropretyValue
获取对象属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法GetValue
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。)
公共扩展器方法Invoke
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。)
公共扩展器方法SetPropretyValue
设置属性值
(由 ObjectExtenstions 定义。)
公共扩展器方法SetValue
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。)
Top
参见