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


C# Control.GetHashCode方法代码示例

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


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

示例1: add

 public static void add(Control container, Control control, object constraints)
 {
     container.Controls.Add(control);
     LayoutManager layoutManager = (LayoutManager) layoutManagers[container.GetHashCode()];
     if (layoutManager is LayoutManager2)
         ((LayoutManager2) layoutManager).AddLayoutComponent(control, constraints);
 }
开发者ID:sourcewarehouse,项目名称:janett,代码行数:7,代码来源:ControlHelper.cs

示例2: CallObjectGetHashCode

		public static object CallObjectGetHashCode(Control c, object[] obj)
		{
			return c.GetHashCode();
		}
开发者ID:HosokawaKenchi,项目名称:powersdr-if-stage,代码行数:4,代码来源:invoke.cs

示例3: doLayout

 public static void doLayout(Control panel)
 {
     LayoutManager layoutManager = (LayoutManager) layoutManagers[panel.GetHashCode()];
     layoutManager.LayoutContainer(panel);
 }
开发者ID:sourcewarehouse,项目名称:janett,代码行数:5,代码来源:ControlHelper.cs

示例4: setLayout

 public static void setLayout(Control container, LayoutManager2 layoutManager)
 {
     layoutManagers[container.GetHashCode()] = layoutManager;
 }
开发者ID:sourcewarehouse,项目名称:janett,代码行数:4,代码来源:ControlHelper.cs

示例5: GetKeyFor

 private static string GetKeyFor(Form form, Control control){
     return string.Format("{0}_{1}", form.GetHashCode(), control.GetHashCode());
 }
开发者ID:satr,项目名称:rvslite,代码行数:3,代码来源:ControlCallback.cs

示例6: MakeControlAndSubControlsSensitiveToKey

        public static void MakeControlAndSubControlsSensitiveToKey(Control control, Keys[] keys, Func<Keys, int> method)
        {
            control.KeyDown += (object sender, KeyEventArgs e) =>
            {
                Control control_sent = (Control)sender;
                if (_sensibleKeys.ContainsKey(control.GetHashCode()))
                {
                    foreach (var key in _sensibleKeys[control.GetHashCode()].key)
                    {
                        if (key == e.KeyCode)
                        {
                            _sensibleKeys[control_sent.GetHashCode()].method(e.KeyCode);
                        }
                    }
                }
            };
            _sensibleKeys.Add(control.GetHashCode(), new ControlDetails(keys, method));

            foreach (Control child_control in control.Controls)
            {
                MakeControlAndSubControlsSensitiveToKey(child_control, keys, method);
            }
        }
开发者ID:sathukorale,项目名称:libDatabaseHelper,代码行数:23,代码来源:FormUtils.cs


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