点击或拖拽改变大小

DuiButton 方法

DuiButton 类型公开以下成员。

方法
  名称说明
公共方法BeginInvoke
在主线程上异步调用方法
(继承自 DuiBaseControl。)
公共方法BringToFront
将控件带到 Z 顺序的前面
(继承自 DuiBaseControl。)
公共方法Dispose (继承自 Component。)
受保护的方法Dispose(Boolean) (继承自 DuiBaseControl。)
公共方法DisposeCanvas
释放画布
(继承自 DuiBaseControl。)
受保护的方法DrawBorders
绘制边框
(继承自 DuiBaseControl。)
受保护的方法DrawButton
以代码形式绘制
受保护的方法Finalize (继承自 Component。)
公共方法Focus
为控件设置输入焦点
(继承自 DuiBaseControl。)
受保护的方法GetService (继承自 Component。)
公共方法HitTest
点击测试
(继承自 DuiBaseControl。)
公共方法Invalidate
使整个控件区域无效,导致重绘
(继承自 DuiBaseControl。)
公共方法Invalidate(Rectangle)
使指定区域无效,导致重绘该区域
(继承自 DuiBaseControl。)
公共方法Invoke
在主线程上调用方法
(继承自 DuiBaseControl。)
公共方法ManagedTask
托管任务,用于处理可能会需要多次处理,但是只要最后一次处理的任务,比如布局,重绘。相同任务在很短时间内被托管多次,只会调用一次。该方法依赖重绘消息或者异步消息
(继承自 DuiBaseControl。)
受保护的方法OnAcceptTask
接收到任务的时候
(继承自 DuiBaseControl。)
受保护的方法OnAnchorChanged
触发AnchorChanged事件
(继承自 DuiBaseControl。)
受保护的方法OnAutoSizeChanged (继承自 DuiLabel。)
受保护的方法OnBackgroundImageChanged (继承自 DuiBaseControl。)
受保护的方法OnControlStateChanged
受保护的方法OnDockChanged (重写 DuiBaseControlOnDockChanged(EventArgs).)
受保护的方法OnEnabledChanged
触发OnEnabledChanged事件
(继承自 DuiBaseControl。)
受保护的方法OnFocusedChanged
触发OnFocusedChanged事件
(继承自 DuiBaseControl。)
受保护的方法OnFontChanged (继承自 DuiLabel。)
受保护的方法OnForeColorChanged
触发ForeColorChanged事件
(继承自 DuiBaseControl。)
受保护的方法OnInvalidated
触发Invalidated事件
(继承自 DuiBaseControl。)
受保护的方法OnIsSelectedChanged (继承自 DuiBaseControl。)
受保护的方法OnKeyDown (重写 DuiBaseControlOnKeyDown(KeyEventArgs).)
受保护的方法OnKeyPress
触发KeyPress事件
(继承自 DuiBaseControl。)
受保护的方法OnKeyUp (重写 DuiBaseControlOnKeyUp(KeyEventArgs).)
受保护的方法OnLayout (继承自 DuiBaseControl。)
受保护的方法OnLoad (继承自 DuiBaseControl。)
受保护的方法OnMarginChanged (继承自 DuiBaseControl。)
受保护的方法OnMouseClick
触发MouseClick事件
(继承自 DuiBaseControl。)
受保护的方法OnMouseDoubleClick
触发MouseDoubleClick事件
(继承自 DuiBaseControl。)
受保护的方法OnMouseDown (重写 DuiBaseControlOnMouseDown(DuiMouseEventArgs).)
受保护的方法OnMouseEnter (重写 DuiBaseControlOnMouseEnter(MouseEventArgs).)
受保护的方法OnMouseLeave (重写 DuiBaseControlOnMouseLeave(EventArgs).)
受保护的方法OnMouseMove
触发MouseMove事件
(继承自 DuiBaseControl。)
受保护的方法OnMouseUp (重写 DuiBaseControlOnMouseUp(DuiMouseEventArgs).)
受保护的方法OnMouseWheel
触发MouseWheel事件
(继承自 DuiBaseControl。)
受保护的方法OnMove
触发Move事件
(继承自 DuiBaseControl。)
受保护的方法OnPaint
触发Paint事件
(继承自 DuiBaseControl。)
受保护的方法OnPaintBackground
触发PaintBackground事件
(继承自 DuiBaseControl。)
受保护的方法OnParentChanged (继承自 DuiBaseControl。)
受保护的方法OnPrePaint (重写 DuiLabelOnPrePaint(PaintEventArgs).)
受保护的方法OnPreviewKeyDown (重写 DuiBaseControlOnPreviewKeyDown(PreviewKeyDownEventArgs).)
受保护的方法OnPropertyChanged (继承自 DuiBaseControl。)
受保护的方法OnSizeChanged (重写 DuiBaseControlOnSizeChanged(EventArgs).)
受保护的方法OnStartPaint (继承自 DuiBaseControl。)
受保护的方法OnTextChanged (继承自 DuiLabel。)
受保护的方法OnVisibleChanged
触发VisibleChanged事件
(继承自 DuiBaseControl。)
公共方法PaintControl
绘制控件
(继承自 DuiBaseControl。)
公共方法PerformLayout
布局子控件
(继承自 DuiBaseControl。)
公共方法ResetMouseStatus
重置鼠标状态,isMouseDown,isMouseEnter,isMouseEnterChildControl设置为false
(继承自 DuiBaseControl。)
公共方法ResumeLayout
恢复布局
(继承自 DuiBaseControl。)
公共方法SendTask
发送任务,父级容器可以接收到任务请求来执行需要的任务
(继承自 DuiBaseControl。)
公共方法SendToBack
将控件发送到 Z 顺序的后面
(继承自 DuiBaseControl。)
公共方法SuspendLayout
挂起布局
(继承自 DuiBaseControl。)
公共方法ToString (继承自 DuiBaseControl。)
公共方法TriggerLoad
触发Load事件
(继承自 DuiBaseControl。)
Top
扩展方法
  名称说明
公共扩展器方法FormatDateTime
将数据以时间格式并对其格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法FormatNumber
将数据以数值方式对数据格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法FormatString
将数据以字符串格式对数据格式化
(由 ObjectExtenstions 定义。)
公共扩展器方法QueryT
查询内部控件
(由 DuiControlExtensions 定义。)
公共扩展器方法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
参见