当前位置: 首页>>代码示例>>C#>>正文


C# IControlHabanero.GetControl方法代码示例

本文整理汇总了C#中IControlHabanero.GetControl方法的典型用法代码示例。如果您正苦于以下问题:C# IControlHabanero.GetControl方法的具体用法?C# IControlHabanero.GetControl怎么用?C# IControlHabanero.GetControl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IControlHabanero的用法示例。


在下文中一共展示了IControlHabanero.GetControl方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddKeyPressEventHandler

 /// <summary>
 /// Handles the default key press behaviours on a control.
 /// This is typically used to change the handling of the enter key (such as having
 /// the enter key cause focus to move to the next control).
 /// </summary>
 /// <param name="control">The control whose events will be handled</param>
 public void AddKeyPressEventHandler(IControlHabanero control)
 {
     if (control == null) throw new ArgumentNullException("control");
     _control = control.GetControl();
     if (_control == null) return;
     _control.KeyUp += CtlKeyUpHandler;
     _control.KeyDown += CtlKeyDownHandler;
     _control.KeyPress += CtlKeyPressHandler;
 }
开发者ID:Chillisoft,项目名称:habanero.faces,代码行数:15,代码来源:ControlMapperStrategyWin.cs

示例2: SetupDockOfControl

        /// <summary>
        /// Sets how the specified control is docked within its parent
        /// </summary>
        protected override void SetupDockOfControl(IControlHabanero control, Position pos)
        {
            _ctl = control.GetControl();
            switch (pos)
            {
                case Position.Centre:
                    _ctl.Dock = DockStyle.Fill;
                    break;
                case Position.North:
                    _ctl.Dock = DockStyle.Top;
                    break;
                case Position.South:
                    _ctl.Dock = DockStyle.Bottom;
                    break;
                case Position.East:
                    _ctl.Dock = DockStyle.Right;
                    break;
                case Position.West:
                    _ctl.Dock = DockStyle.Left;
                    break;

            }
        }
开发者ID:Chillisoft,项目名称:habanero.faces,代码行数:26,代码来源:BorderLayoutManagerWin.cs

示例3: GetToolTip

 /// <summary>
 /// Retrieves the ToolTip text associated with the specified control
 /// </summary>
 /// <param name="controlHabanero">The Control for which to retrieve the ToolTip text</param>
 public string GetToolTip(IControlHabanero controlHabanero)
 {
     return base.GetToolTip(controlHabanero.GetControl());
 }
开发者ID:Chillisoft,项目名称:habanero.faces,代码行数:8,代码来源:ToolTipWin.cs

示例4: SetToolTip

 /// <summary>
 /// Associates ToolTip text with the specified control
 /// </summary>
 /// <param name="controlHabanero">The Control to associate the ToolTip text with</param>
 /// <param name="toolTipText">The ToolTip text to display when the pointer is on the control</param>
 public void SetToolTip(IControlHabanero controlHabanero, string toolTipText)
 {
     base.SetToolTip(controlHabanero.GetControl(), toolTipText);
 }
开发者ID:Chillisoft,项目名称:habanero.faces,代码行数:9,代码来源:ToolTipWin.cs

示例5: GetControl

 protected virtual Control GetControl(IControlHabanero objControl)
 {
     var controlWin = objControl.GetControl();
     if(controlWin != null) return controlWin;
     return new Control();
 }
开发者ID:Chillisoft,项目名称:habanero.faces,代码行数:6,代码来源:ErrorProviderWin.cs

示例6: IndexOf

 /// <summary>
 /// Provides the index position of the control specified
 /// </summary>
 /// <param name="value">The control to search for</param>
 /// <returns>Returns the index position if found, or -1</returns>
 public int IndexOf(IControlHabanero value)
 {
     return _col.IndexOf(value.GetControl());
 }
开发者ID:Chillisoft,项目名称:habanero.faces,代码行数:9,代码来源:ControlCollectionWin.cs

示例7: Add

 /// <summary>
 /// Adds a control to the collection
 /// </summary>
 /// <param name="value">The control to add</param>
 /// <returns>Returns the position at which the control was added</returns>
 public void Add(IControlHabanero value)
 {
     _col.Add(value.GetControl());
 }
开发者ID:Chillisoft,项目名称:habanero.faces,代码行数:9,代码来源:ControlCollectionWin.cs


注:本文中的IControlHabanero.GetControl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。