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

C# Forms.ColumnWidthChangedEventArgs类代码示例

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

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



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

示例1: BitList_ColumnWidthChanged

 private void BitList_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     this.BitList.ColumnWidthChanged -= BitList_ColumnWidthChanged;
     switch (e.ColumnIndex)
     {
         case 0: this.BitList.Columns[0].Width = 30; break;
         case 1: this.BitList.Columns[1].Width = 46; break;
         case 2: this.BitList.Columns[2].Width = 93; break;
     }
     this.BitList.ColumnWidthChanged += BitList_ColumnWidthChanged;
 }
开发者ID:hkhaug,项目名称:UbwTools,代码行数:11,代码来源:BflagAdvancedGuiForm.cs


示例2: ColumnWidthChanged

 /// <summary>
 /// Save columns' widths every time they change. This will happen when the
 /// form loads for the first time and then every time a user drags and resizes a column
 /// </summary>
 private void ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     // Store new width only when there are items on the list. This check also prevents
     // the code from storing initial loaded columns when the form is created
     if (listRepos.Items.Count > 0)
     {
         int[] columns = (int[])Properties.Settings.Default.ReposColumnWidths;
         if (columns == null)
             columns = new int[4];
         columns[e.ColumnIndex] = listRepos.Columns[e.ColumnIndex].Width;
         Properties.Settings.Default.ReposColumnWidths = columns;
     }
 }
开发者ID:runt18,项目名称:GitForce,代码行数:17,代码来源:PanelRepos.cs


示例3: HandleColumnWidthChanged

 /// <summary>
 /// When the column widths change, resize the space filling columns
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void HandleColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     if (!this.GetColumn(e.ColumnIndex).FillsFreeSpace)
         this.ResizeFreeSpaceFillingColumns();
 }
开发者ID:ZlayaZhaba,项目名称:XervBackup,代码行数:10,代码来源:ObjectListView.cs


示例4: HistoryListView_ColumnWidthChanged

 void HistoryListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     SaveColumnWidths();
 }
开发者ID:iwaim,项目名称:growl-for-windows,代码行数:4,代码来源:HistoryListView.cs


示例5: SubtitleListViewColumnWidthChanged

 private void SubtitleListViewColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     if (_settings != null && _saveColumnWidthChanges)
     {
         switch (e.ColumnIndex)
         {
             case ColumnIndexNumber:
                 Configuration.Settings.General.ListViewNumberWidth = Columns[ColumnIndexNumber].Width;
                 break;
             case ColumnIndexStart:
                 Configuration.Settings.General.ListViewStartWidth = Columns[ColumnIndexStart].Width;
                 break;
             case ColumnIndexEnd:
                 Configuration.Settings.General.ListViewEndWidth = Columns[ColumnIndexEnd].Width;
                 break;
             case ColumnIndexDuration:
                 Configuration.Settings.General.ListViewDurationWidth = Columns[ColumnIndexDuration].Width;
                 break;
             case ColumnIndexText:
                 Configuration.Settings.General.ListViewTextWidth = Columns[ColumnIndexText].Width;
                 break;
         }
     }
 }
开发者ID:rragu,项目名称:subtitleedit,代码行数:24,代码来源:SubtitleListView.cs


示例6: OnColumnWidthChanged

		private void OnColumnWidthChanged (object sender, ColumnWidthChangedEventArgs args)
		{
			if (args.ColumnIndex
			    == itemProvider.HeaderProvider.ListView.Columns.IndexOf (itemProvider.ColumnHeader))
			    RaiseAutomationPropertyChangedEvent ();
		}
开发者ID:mono,项目名称:uia2atk,代码行数:6,代码来源:HeaderItemAutomationIsOffScreenPropertyEvent.cs


示例7: RaiseColumnWidthChanged

		void RaiseColumnWidthChanged (int resize_column)
		{
			ColumnWidthChangedEventArgs n = new ColumnWidthChangedEventArgs (resize_column);

			OnColumnWidthChanged (n);
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:6,代码来源:ListView.cs


示例8: OnPwListColumnWidthChanged

 private void OnPwListColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     UpdateColumnsEx(true);
 }
开发者ID:amiryal,项目名称:keepass2,代码行数:4,代码来源:MainForm.cs


示例9: OnColumnWidthChanged

 /// <include file='doc\ListView.uex' path='docs/doc[@for="ListView.OnColumnWidthChanged"]/*' />
 /// <devdoc>
 ///     Fires the column width changing event.
 /// </devdoc>
 protected virtual void OnColumnWidthChanged(ColumnWidthChangedEventArgs e) {
     ColumnWidthChangedEventHandler handler = (ColumnWidthChangedEventHandler)Events[EVENT_COLUMNWIDTHCHANGED];
     if (handler != null) {
         handler(this, e);
     }
 }
开发者ID:JianwenSun,项目名称:cc,代码行数:10,代码来源:ListView.cs


示例10: lvSkills_ColumnWidthChanged

        /// <summary>
        /// When the user manually resizes a column, we make sure to update the column preferences.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lvSkills_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
        {
            if (m_isUpdatingColumns)
                return;

            if (m_columns.Count <= e.ColumnIndex)
                return;

            m_columns[e.ColumnIndex].Width = lvSkills.Columns[e.ColumnIndex].Width;
            Settings.UI.PlanWindow.Columns.Clear();
            Settings.UI.PlanWindow.Columns.AddRange(ExportColumnSettings());
        }
开发者ID:RapidFiring,项目名称:evemon,代码行数:17,代码来源:PlanEditorControl.cs


示例11: lvResearchPoints_ColumnWidthChanged

        /// <summary>
        /// When the user manually resizes a column, we make sure to update the column preferences.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void lvResearchPoints_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
        {
            if (m_isUpdatingColumns || m_columns.Count <= e.ColumnIndex)
                return;

            m_columns[e.ColumnIndex].Width = lvResearchPoints.Columns[e.ColumnIndex].Width;
            m_columnsChanged = true;
        }
开发者ID:wow4all,项目名称:evemu_server,代码行数:13,代码来源:MainWindowResearchPoints.cs


示例12: networkListView_ColumnWidthChanged

 private void networkListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     networkListView.SetLastColumnWidth();
 }
开发者ID:jaredb7,项目名称:vixen,代码行数:4,代码来源:ExportDialog.cs


示例13: control_ColumnWidthChanged

 private void control_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     ColumnHeader column = m_control.Columns[e.ColumnIndex];
     m_columnWidths[column.Text] = column.Width;
 }
开发者ID:BeRo1985,项目名称:LevelEditor,代码行数:5,代码来源:ListViewAdapter.cs


示例14: mappingsListView_ColumnWidthChanged

        private void mappingsListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
        {
            ColumnHeader column = mappingsListView.Columns[e.ColumnIndex];

            if (column == descriptionColumn)
            {
                if(column.Width < 40)
                    column.Width = 40;
                else if (column.Width > 1000)
                    column.Width = 1000;
            }
            else if (column == localPortColumn)
            {
                if (column.Width != 80)
                    column.Width = 80;
            }
            else if (column == desiredPortColumn)
            {
                if (column.Width != 80)
                    column.Width = 80;
            }
            else if (column == statusColumn)
            {
                if (column.Width != 18)
                    column.Width = 18;
            }
            else if (column == publicPortColumn)
            {
                if (column.Width != 80)
                    column.Width = 80;
            }
        }
开发者ID:heshamnet16,项目名称:dotnetportmapper,代码行数:32,代码来源:Form1.cs


示例15: lvwProjects_ColumnWidthChanged

		private void lvwProjects_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e) {
			//Größe der ListView Spalten sichern
			saveColumnHeaderSizes(lvwProjects);
		}
开发者ID:Taipi88,项目名称:updateSystem.NET,代码行数:4,代码来源:statisticProjectsSubPage.cs


示例16: lvFileList_ColumnWidthChanged

        private void lvFileList_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
        {
            try
            {
                if (m_canSaveWindowSettings)
                {
                    Misc.ApplicationSettings.KfsNameColumnWidth = lvFileList.Columns[0].Width;
                    Misc.ApplicationSettings.KfsSizeColumnWidth = lvFileList.Columns[1].Width;
                    Misc.ApplicationSettings.KfsStatusColumnWidth = lvFileList.Columns[3].Width;
                    Misc.ApplicationSettings.KfsModDateColumnWidth = lvFileList.Columns[4].Width;
                    Misc.ApplicationSettings.KfsModByColumnWidth = lvFileList.Columns[5].Width;

                    Misc.ApplicationSettings.Save();
                }
            }
            catch (Exception ex)
            {
                Base.HandleException(ex);
            }
        }
开发者ID:tmbx,项目名称:kwm-release,代码行数:20,代码来源:AppKfsControl.cs


示例17: listViewExPowerManagementHosts_ColumnWidthChanged

 //Maintain minimum column widths
 private void listViewExPowerManagementHosts_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
 {
     if (e.ColumnIndex < minimumColumnWidths.Length)
     {
         if (listViewExPowerManagementHosts.Columns[e.ColumnIndex].Width < minimumColumnWidths[e.ColumnIndex])
         {
             listViewExPowerManagementHosts.Columns[e.ColumnIndex].Width = minimumColumnWidths[e.ColumnIndex];
         }
     }
 }
开发者ID:agimofcarmen,项目名称:xenadmin,代码行数:11,代码来源:WlbAutomationPage.cs


示例18: optimizePoolListView_ColumnWidthChanged

        private void optimizePoolListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
        {
            //Maintain a minimum column widths


            if (minimumColumnWidths.Length>=e.ColumnIndex &&
                optimizePoolListView.Columns[e.ColumnIndex].Width < minimumColumnWidths[e.ColumnIndex])
            {
                optimizePoolListView.Columns[e.ColumnIndex].Width = minimumColumnWidths[e.ColumnIndex];
            }
        }
开发者ID:robhoes,项目名称:xenadmin,代码行数:11,代码来源:WlbOptimizePool.cs


示例19: OnColumnWidthChanged

		protected virtual void OnColumnWidthChanged (ColumnWidthChangedEventArgs e)
		{
			ColumnWidthChangedEventHandler eh = (ColumnWidthChangedEventHandler) (Events[ColumnWidthChangedEvent]);
			if (eh != null)
				eh (this, e);
		}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:6,代码来源:ListView.cs


示例20: OnColumnWidthChanged

 protected override void OnColumnWidthChanged(ColumnWidthChangedEventArgs e)
 {
     base.OnColumnWidthChanged(e);
     if (!this._colResize)
         this.SetColWidths();
 }
开发者ID:tenshino,项目名称:RainstormStudios,代码行数:6,代码来源:ctrlFixedColumnListView.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Forms.ColumnWidthChangingEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Forms.ColumnHeader类代码示例发布时间: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