ObjectExtenstions 类 |
命名空间: CPF
public static class ObjectExtenstions
ObjectExtenstions 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() ![]() | Add(CollectionPoint, Single, Single) |
添加Point
|
![]() ![]() | AddT(UIElementCollection, T, Int32, Int32, Int32, Int32) |
针对Grid添加控件元素,并设置所在的单元格位置
|
![]() ![]() | ConvertTo |
类型转换
|
![]() ![]() | Delay(Object, TimeSpan, Action) |
延迟操作
|
![]() ![]() | DelayT, V(T, TimeSpan, ExpressionFuncT, V, V) |
延迟设置值
|
![]() ![]() | Equal(Object, Object) |
对象是否相等
|
![]() ![]() | Equal(Single, Single) |
是否大约相等 Math.Abs(f1 - f2) < 0.0001
|
![]() ![]() | GetAttachedPropertyNameValue |
获取附加属性的名称
|
![]() ![]() | GetCreationCode | |
![]() ![]() | GetDataTable |
必须是DataTable转换为IList的才行
|
![]() ![]() | GetPropretyValue |
获取对象属性值
|
![]() ![]() | Parse |
字符串转具体的数据
|
![]() ![]() | SetPropretyValue |
设置属性值
|
![]() ![]() | SetTemplateT |
设置控件模板,就是对Control的Template 属性进行泛型包装
|
![]() ![]() | ToArrayT | |
![]() ![]() | ToItems(IEnumerable) |
转成IList用于Items属性设置
|
![]() ![]() | ToItems(DataTable) |
转成IList用于Items属性设置
|