Size 结构 |
[缺少 "T:CPF.Drawing.Size" 的 <summary> 文档]
命名空间: CPF.Drawing
[SerializableAttribute] [TypeConverterAttribute(typeof(SizeConverter))] public struct Size : IFormattable
Size 类型公开以下成员。
名称 | 说明 | |
---|---|---|
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
|
名称 | 说明 | |
---|---|---|
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.
|
名称 | 说明 | |
---|---|---|
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 |
名称 | 说明 | |
---|---|---|
ConvertTo |
类型转换
(由 ObjectExtenstions 定义。) | |
Delay |
延迟操作
(由 ObjectExtenstions 定义。) | |
Equal |
对象是否相等
(由 ObjectExtenstions 定义。) | |
GetCreationCode | (由 ObjectExtenstions 定义。) | |
GetPropretyValue |
获取对象属性值
(由 ObjectExtenstions 定义。) | |
GetValue |
快速动态获取对象的属性值
(由 FastReflectionExtensions 定义。) | |
Invoke |
快速动态调用对象的方法
(由 FastReflectionExtensions 定义。) | |
SetPropretyValue |
设置属性值
(由 ObjectExtenstions 定义。) | |
SetValue |
快速动态设置对象的属性值
(由 FastReflectionExtensions 定义。) |