當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.ColumnWidthChangedEventArgs類代碼示例

本文整理匯總了C#中System.Windows.Forms.ColumnWidthChangedEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# ColumnWidthChangedEventArgs類的具體用法?C# ColumnWidthChangedEventArgs怎麽用?C# ColumnWidthChangedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ColumnWidthChangedEventArgs類屬於System.Windows.Forms命名空間,在下文中一共展示了ColumnWidthChangedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的System.Windows.Forms.ColumnWidthChangedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。