点击或拖拽改变大小

DuiControlExtensionsDoEffectT 方法 (T, Int32, Int32, Int32, String, ActionBoolean)

自定义属性变化动画,如果是集合则遍历集合执行属性变化

命名空间:  DSkin.DirectUI
程序集:  DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法
C#
public static void DoEffect<T>(
	this T obj,
	int from,
	int to,
	int timeSpan,
	string property,
	Action<bool> action
)

参数

obj
类型:T

[缺少 "M:DSkin.DirectUI.DuiControlExtensions.DoEffect``1(``0,System.Int32,System.Int32,System.Int32,System.String,System.Action{System.Boolean})" 的 <param name="obj"/> 文档]

from
类型:SystemInt32
初始值
to
类型:SystemInt32
结果值
timeSpan
类型:SystemInt32
整个变化时间长度毫秒
property
类型:SystemString
属性名
action
类型:SystemActionBoolean
是否还在播放,结束则为False

类型参数

T

[缺少 "M:DSkin.DirectUI.DuiControlExtensions.DoEffect``1(``0,System.Int32,System.Int32,System.Int32,System.String,System.Action{System.Boolean})" 的 <typeparam name="T"/> 文档]

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。
参见