• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.ColumnWidthChangingEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



ColumnWidthChangingEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了ColumnWidthChangingEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: OnColumnWidthChanging

        protected virtual void OnColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
        {
            if ( e.ColumnIndex != ColumnIndex ) return;

            e.Cancel = true;
            e.NewWidth = ListView.Columns[e.ColumnIndex].Width;
        }
开发者ID:ChrisDodgeRR,项目名称:RaceTiming,代码行数:7,代码来源:ListViewButtonColumn.cs


示例2: lv_cancelResize

 private void lv_cancelResize(object sender, ColumnWidthChangingEventArgs e)
 {
     if (e.ColumnIndex == 1)
       {
     e.Cancel = true;
     e.NewWidth = 0;
       }
 }
开发者ID:pavlin-policar,项目名称:SimpleMailClient,代码行数:8,代码来源:wuc_inbox.cs


示例3: listView_ColumnWidthChanging

 private void listView_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     if (TotalColWidth > ClientSize.Width)
     {
         e.Cancel = true;
         e.NewWidth = ClientSize.Width - (TotalColWidth - Columns[e.ColumnIndex].Width);
     }
     treeView.Refresh();            
 }
开发者ID:fbmly007,项目名称:3dsexplorer,代码行数:9,代码来源:TreeListView.cs


示例4: OnColumnWidthChanging

		void OnColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
		{
			// Don't allow the user to display the first column (item name).
			if (e.ColumnIndex == columnIndex)
			{
				e.Cancel = true;
				e.NewWidth = 0;
			}
		}
开发者ID:Zaharkov,项目名称:SteamKit,代码行数:9,代码来源:ListViewColumnHider.cs


示例5: OnColumnWidthChanging

 protected override void OnColumnWidthChanging(ColumnWidthChangingEventArgs e)
 {
     if (!AllowChangeHeaderWidth)
     {
         e.Cancel = true;
         e.NewWidth = this.Columns[e.ColumnIndex].Width;
     }
     base.OnColumnWidthChanging(e);
 }
开发者ID:panshuiqing,项目名称:winform-ui,代码行数:9,代码来源:ListViewEx.cs


示例6: Current_List_ColumnWidthChanging

 private void Current_List_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     if (e.ColumnIndex == lockColumnIndex)
     {
         //Keep the width not changed.
         e.NewWidth = this.Current_List.Columns[e.ColumnIndex].Width;
         //Cancel the event.
         e.Cancel = true;
     }
 }
开发者ID:koeqatel,项目名称:Sander-Productions-Media-player,代码行数:10,代码来源:PlayLists.cs


示例7: listView1_ColumnWidthChanging

 private void listView1_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     this.DatatreeView.Focus();
     this.DatatreeView.Invalidate();
 }
开发者ID:zwq194,项目名称:MagicMongoDBTool,代码行数:5,代码来源:TreeViewColumns.cs


示例8: LV_Entries_ColumnWidthChanging

 /// <summary>
 /// Prevent user from changing column widths
 /// </summary>
 private void LV_Entries_ColumnWidthChanging(
     object sender, ColumnWidthChangingEventArgs e)
 {
     e.Cancel = true;
     e.NewWidth = lvManga.Columns[e.ColumnIndex].Width;
 }
开发者ID:Nagru,项目名称:Manga-Organizer,代码行数:9,代码来源:Main.cs


示例9: listRestorePoint_ColumnWidthChanging

 /// <summary>
 /// listRestorePoint ColumnWidthChanging event handler.
 /// Sets the [0] column width to 0.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void listRestorePoint_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     if (e.ColumnIndex == 0)
     {
         e.NewWidth = 0;
         e.Cancel = true;
     }
 }
开发者ID:nullkuhl,项目名称:fsu-dev,代码行数:14,代码来源:FormRestorePoint.cs


示例10: InventoryList_ColumnWidthChanging

 private void InventoryList_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     if (e.ColumnIndex == 0)
     {
         e.NewWidth = this.InventoryList.Columns[0].Width;
         e.Cancel = true;
     }
 }
开发者ID:jmazzola,项目名称:SCMBot,代码行数:8,代码来源:Main.cs


示例11: OnColumnWidthChanging

		protected virtual void OnColumnWidthChanging (ColumnWidthChangingEventArgs e)
		{
			ColumnWidthChangingEventHandler cwceh = (ColumnWidthChangingEventHandler) (Events[ColumnWidthChangingEvent]);
			if (cwceh != null)
				cwceh (this, e);
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:6,代码来源:ListView.cs


示例12: lvTaskList_ColumnWidthChanging

 private void lvTaskList_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     if (e.NewWidth < MIN_WIDTH)
     {
         e.Cancel = true;
         e.NewWidth = lvTaskList.Columns[e.ColumnIndex].Width;
     }
 }
开发者ID:riverstore,项目名称:syncsharp,代码行数:8,代码来源:AutoRunForm.cs


示例13: lstvList_ColumnWidthChanging

 //-------------------------------------------------------------------------------
 //
 private void lstvList_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     if (e.ColumnIndex == 0) { // 画像部分は動かせないようにする
         e.NewWidth = 52;
         e.Cancel = true;
     }
 }
开发者ID:tomfuru,项目名称:StarlitTwit,代码行数:9,代码来源:FrmDispUsers.cs


示例14: ltvProdutos_ColumnWidthChanging

 private void ltvProdutos_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
              => MyListView.ColumnWidthChanging(e, ltvProdutos);
开发者ID:mikemajesty,项目名称:padariaterminalv2,代码行数:2,代码来源:frmTerminal.cs


示例15: OnColWidthChanging

 //拖动Head的时候,处理需要隐藏的列。
 void OnColWidthChanging ( object sender , ColumnWidthChangingEventArgs e )
 {
     foreach ( int nCol in _lstColHide )
     {
         if (e.ColumnIndex == nCol && e.NewWidth > 0)
         {
             e.NewWidth = 0;
             e.Cancel = true;
         }
     }
 }
开发者ID:cheng521yun,项目名称:https---github.com-frontflag-FTMZ_CY,代码行数:12,代码来源:XListView2.cs


示例16: lvFileList_ColumnWidthChanging

 private void lvFileList_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     try
     {
         // Deny resizing hidden columns. Ugly.
         if (e.ColumnIndex == 2)
         {
             e.Cancel = true;
             e.NewWidth = 0;
         }
     }
     catch (Exception ex)
     {
         Base.HandleException(ex);
     }
 }
开发者ID:tmbx,项目名称:kwm-release,代码行数:16,代码来源:AppKfsControl.cs


示例17: listView_ColumnWidthChanging

 void listView_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     e.NewWidth = ((ListView)sender).Columns[e.ColumnIndex].Width;
     e.Cancel = true;
 }
开发者ID:ddonny,项目名称:Network-Manager,代码行数:5,代码来源:ControlPanelForm.cs


示例18: listviewname_ColumnWidthChanging

 private void listviewname_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     //e.Cancel = true;
     //e.NewWidth = lbExams.Columns[e.ColumnIndex].Width;
 }
开发者ID:westre,项目名称:Petje-op,代码行数:5,代码来源:ExamOverviewStudentView.Designer.cs


示例19: deviceListView_ColumnWidthChanging

 private void deviceListView_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     //don't allow 0-width (hidden) columns to be resized
     if (deviceListView.Columns[e.ColumnIndex].Width == 0)
     {
         e.Cancel = true;
         e.NewWidth = 0;
     }
 }
开发者ID:raduga777,项目名称:MultiMiner,代码行数:9,代码来源:MainForm.cs


示例20: lvBookmarks_ColumnWidthChanging

 void lvBookmarks_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
 {
     ApplyColumnWidths();
 }
开发者ID:rraguso,项目名称:protone-suite,代码行数:4,代码来源:BookmarkScreen.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.ComboBox类代码示例发布时间:2022-05-26
下一篇:
C# Forms.ColumnWidthChangedEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap