共用方式為


RolePlayerComboCell 類別

若要允許覆寫的剖析和格式化功能的類別。

繼承階層架構

System.Object
  System.Windows.Forms.DataGridViewElement
    System.Windows.Forms.DataGridViewCell
      System.Windows.Forms.DataGridViewComboBoxCell
        Microsoft.VisualStudio.Modeling.Design.RolePlayerComboCell

命名空間:  Microsoft.VisualStudio.Modeling.Design
組件:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

語法

'宣告
Public Class RolePlayerComboCell _
    Inherits DataGridViewComboBoxCell
public class RolePlayerComboCell : DataGridViewComboBoxCell

RolePlayerComboCell 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 RolePlayerComboCell 預設建構函式。

回頁首

屬性

  名稱 說明
公用屬性 AccessibilityObject 取得指定給 DataGridViewCellDataGridViewCell.DataGridViewCellAccessibleObject。 (繼承自 DataGridViewCell)。
公用屬性 AutoComplete 取得或設定值,指出儲存格是否會符合所輸入的字元所的儲存格與選取項目從下拉式清單。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 ColumnIndex 取得這個儲存格的資料行索引。 (繼承自 DataGridViewCell)。
公用屬性 ContentBounds 取得圍住儲存格內容區域的周框。 (繼承自 DataGridViewCell)。
公用屬性 ContextMenuStrip 取得或設定與儲存格相關聯的捷徑功能表。 (繼承自 DataGridViewCell)。
公用屬性 DataGridView 取得DataGridView與此項目關聯的控制項。 (繼承自 DataGridViewElement)。
公用屬性 DataSource 取得或設定資料來源,其中的資料包含可能顯示在下拉式清單中的選項。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 DefaultNewRowValue 取得新資料錄之資料列中儲存格的預設值。 (繼承自 DataGridViewCell)。
公用屬性 Displayed 取得指出儲存格目前是否顯示於螢幕上的值。 (繼承自 DataGridViewCell)。
公用屬性 DisplayMember 取得或設定 string,其指定要從何處收集要顯示在下拉式清單中的選項。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 DisplayStyle 取得或設定值,這個值可判斷不處於編輯模式時,如何顯示下拉式方塊。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 DisplayStyleForCurrentCellOnly 取得或設定值,指出是否DisplayStyle時才在目前的儲存格屬性值可套用至儲存格DataGridView控制項。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 DropDownWidth 取得或設定的寬度的下拉式方塊的下拉式清單部分。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 EditedFormattedValue 取得目前已格式化的儲存格值,不管儲存格是否處於編輯模式,而值是否尚未認可。 (繼承自 DataGridViewCell)。
公用屬性 EditType 取得儲存格之裝載編輯控制項的型別。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 ErrorIconBounds 取得儲存格之錯誤圖示的界限。 (繼承自 DataGridViewCell)。
公用屬性 ErrorText 取得或設定文字,描述與儲存格相關聯的錯誤狀況。 (繼承自 DataGridViewCell)。
公用屬性 FlatStyle 取得或設定儲存格的平面樣式外觀。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 FormattedValue 取得儲存格的格式化值,以供顯示。 (繼承自 DataGridViewCell)。
公用屬性 FormattedValueType 取得與儲存格相關的格式化值的類別型別。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 Frozen 取得指出是否已凍結此儲存格的值。 (繼承自 DataGridViewCell)。
公用屬性 HasStyle 取得指出是否已經設定 Style 屬性的值。 (繼承自 DataGridViewCell)。
公用屬性 InheritedState 取得儲存格的目前狀態,是繼承其資料列和資料行的狀態。 (繼承自 DataGridViewCell)。
公用屬性 InheritedStyle 取得目前套用至儲存格的樣式。 (繼承自 DataGridViewCell)。
公用屬性 IsInEditMode 取得指出目前是否正在編輯這個儲存格的值。 (繼承自 DataGridViewCell)。
公用屬性 Items 取得表示選取項目顯示在下拉式清單中的物件。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 MaxDropDownItems 取得或設定項目顯示在下拉式清單中的最大數目。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 OwningColumn 取得包含這個儲存格的資料行。 (繼承自 DataGridViewCell)。
公用屬性 OwningRow 取得包含這個儲存格的資料列。 (繼承自 DataGridViewCell)。
公用屬性 PreferredSize 取得能夠容納儲存格的矩形區域大小 (以像素為單位)。 (繼承自 DataGridViewCell)。
公用屬性 ReadOnly 取得或設定值,指出是否可以編輯儲存格的資料。 (繼承自 DataGridViewCell)。
公用屬性 Resizable 取得指出儲存格是否可以調整大小的值。 (繼承自 DataGridViewCell)。
公用屬性 RowIndex 取得儲存格的父資料列索引。 (繼承自 DataGridViewCell)。
公用屬性 Selected 取得或設定值,指出是否已選取此儲存格。 (繼承自 DataGridViewCell)。
公用屬性 Size 取得儲存格的大小。 (繼承自 DataGridViewCell)。
公用屬性 Sorted 取得或設定值,指出是否在下拉式方塊中的項目會自動排序。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 State 取得使用者介面 (UI) 元素的狀態。 (繼承自 DataGridViewElement)。
公用屬性 Style 取得或設定儲存格的樣式。 (繼承自 DataGridViewCell)。
公用屬性 Tag 取得或設定物件,其中包含儲存格的相關補充資料。 (繼承自 DataGridViewCell)。
公用屬性 ToolTipText 取得或設定與這個儲存格相關聯的工具提示文字。 (繼承自 DataGridViewCell)。
公用屬性 Value 取得或設定與這個儲存格相關聯的值。 (繼承自 DataGridViewCell)。
公用屬性 ValueMember 取得或設定 string,其指定要從何處收集下拉式清單中所用的基礎值。 (繼承自 DataGridViewComboBoxCell)。
公用屬性 ValueType 強制值型別的資料行的實值型別將儲存格。 (覆寫 DataGridViewComboBoxCell.ValueType。)
公用屬性 Visible 取得指出儲存格是在已隱藏資料列或是資料行中的值。 (繼承自 DataGridViewCell)。

回頁首

方法

  名稱 說明
公用方法 AdjustCellBorderStyle 根據指定的準則,修改輸入儲存格框線樣式。 (繼承自 DataGridViewCell)。
受保護的方法 BorderWidths 傳回 Rectangle,表示所有儲存格邊界的寬度。 (繼承自 DataGridViewCell)。
受保護的方法 ClickUnsharesRow 指出當按下儲存格時,儲存格的資料列是否會取消共用。 (繼承自 DataGridViewCell)。
公用方法 Clone 建立完全相同的複本,此儲存格。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 ContentClickUnsharesRow 指出當按下儲存格內容時,儲存格的資料列是否會取消共用。 (繼承自 DataGridViewCell)。
受保護的方法 ContentDoubleClickUnsharesRow 指出當按兩下儲存格內容時,儲存格的資料列是否會取消共用。 (繼承自 DataGridViewCell)。
受保護的方法 CreateAccessibilityInstance DataGridViewCell 建立新的可存取物件。 (繼承自 DataGridViewCell)。
公用方法 DetachEditingControl DataGridView 中移除儲存格的編輯控制項。 (繼承自 DataGridViewComboBoxCell)。
公用方法 Dispose() 釋放 DataGridViewCell 所使用的所有資源。 (繼承自 DataGridViewCell)。
受保護的方法 Dispose(Boolean) 釋放 DataGridViewCell 所使用的 Unmanaged 資源,並選擇性釋放 Managed 資源。 (繼承自 DataGridViewCell)。
受保護的方法 DoubleClickUnsharesRow 指出當按兩下儲存格時,儲存格的資料列是否會取消共用。 (繼承自 DataGridViewCell)。
受保護的方法 EnterUnsharesRow 指出當焦點移至儲存格時,是否將取消共用父資料列。 (繼承自 DataGridViewCell)。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收 DataGridViewCell 之前釋放 Unmanaged 資源並執行其他的清除作業。 (繼承自 DataGridViewCell)。
受保護的方法 GetClipboardContent 擷取儲存格的已格式化的值,以複製到 Clipboard。 (繼承自 DataGridViewCell)。
公用方法 GetContentBounds(Int32) 使用預設的 Graphics 和目前儲存格中所採用的儲存格樣式,傳回圍住儲存格內容區域的周框。 (繼承自 DataGridViewCell)。
受保護的方法 GetContentBounds(Graphics, DataGridViewCellStyle, Int32) 傳回圍住儲存格內容區域的周框,此內容區域是使用指定的 Graphics 和儲存格樣式所計算。 (繼承自 DataGridViewComboBoxCell)。
公用方法 GetEditedFormattedValue 傳回目前已格式化的儲存格值,不管儲存格是否處於編輯模式,而值是否尚未認可。 (繼承自 DataGridViewCell)。
受保護的方法 GetErrorIconBounds 傳回圍住儲存格的錯誤圖示之週框 (如果有此圖示)。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 GetErrorText 傳回表示儲存格錯誤的字串。 (繼承自 DataGridViewCell)。
受保護的方法 GetFormattedValue 將值格式化 (覆寫 DataGridViewComboBoxCell.GetFormattedValue(Object, Int32, DataGridViewCellStyle%, TypeConverter, TypeConverter, DataGridViewDataErrorContexts)。)
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetInheritedContextMenuStrip 取得目前儲存格的繼承捷徑功能表。 (繼承自 DataGridViewCell)。
公用方法 GetInheritedState 傳回值,指出儲存格的目前狀態是從其資料列和資料行的狀態繼承而來。 (繼承自 DataGridViewCell)。
公用方法 GetInheritedStyle 取得套用到儲存格的樣式。 (繼承自 DataGridViewCell)。
受保護的方法 GetPreferredSize 計算儲存格的慣用大小 (以像素為單位)。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 GetSize 取得儲存格的大小。 (繼承自 DataGridViewCell)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 GetValue 取得儲存格的值。 (繼承自 DataGridViewCell)。
公用方法 InitializeEditingControl (覆寫 DataGridViewComboBoxCell.InitializeEditingControl(Int32, Object, DataGridViewCellStyle)。)
受保護的方法 KeyDownUnsharesRow 指出當焦點在儲存格上,而使用者按下按鍵時,是否取消共用父資料列。 (繼承自 DataGridViewCell)。
公用方法 KeyEntersEditMode 決定是否應該啟動編輯模式根據指定的索引鍵。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 KeyPressUnsharesRow 指出在資料列中的儲存格具有焦點時,如果按下按鍵,資料列是否將進行取消共用。 (繼承自 DataGridViewCell)。
受保護的方法 KeyUpUnsharesRow 指出當焦點在儲存格上,而使用者釋放按鍵時,是否取消共用父資料列。 (繼承自 DataGridViewCell)。
受保護的方法 LeaveUnsharesRow 指出當焦點移出資料列中的儲存格時,是否取消共用該資料列。 (繼承自 DataGridViewCell)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
受保護的方法 MouseClickUnsharesRow 指出當指標在資料列的儲存格上,而使用者按一下滑鼠按鈕時,該資料列是否取消共用。 (繼承自 DataGridViewCell)。
受保護的方法 MouseDoubleClickUnsharesRow 指出當使用者按兩下資料列中的儲存格時,是否取消共用該資料列。 (繼承自 DataGridViewCell)。
受保護的方法 MouseDownUnsharesRow 指出當指標在資料列的儲存格上,而按住滑鼠按鈕時,該資料列是否取消共用。 (繼承自 DataGridViewCell)。
受保護的方法 MouseEnterUnsharesRow 指出當滑鼠指標移到某資料列的儲存格上方時,是否取消共用該資料列。 (繼承自 DataGridViewCell)。
受保護的方法 MouseLeaveUnsharesRow 指示當滑鼠指標離開某列時,該列是否共用。 (繼承自 DataGridViewCell)。
受保護的方法 MouseMoveUnsharesRow 指出當滑鼠指標移到某資料列的儲存格上方時,是否取消共用該資料列。 (繼承自 DataGridViewCell)。
受保護的方法 MouseUpUnsharesRow 指出當指標在資料列的儲存格上,而使用者釋放滑鼠按鈕時,該資料列是否取消共用。 (繼承自 DataGridViewCell)。
受保護的方法 OnClick 當按下儲存格時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnContentClick 當按下儲存格內容時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnContentDoubleClick 當按兩下儲存格內容時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnDataGridViewChanged 處理資料格線不會變更 (覆寫 DataGridViewComboBoxCell.OnDataGridViewChanged()。)
受保護的方法 OnDoubleClick 當按兩下儲存格時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnEnter 當焦點移至儲存格時呼叫。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 OnKeyDown 當焦點在儲存格上,按下字元鍵時即會呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnKeyPress 當焦點在儲存格上,按下按鍵時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnKeyUp 當焦點在儲存格上,放開字元鍵時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnLeave (覆寫 DataGridViewComboBoxCell.OnLeave(Int32, Boolean)。)
受保護的方法 OnMouseClick 當滑鼠指標在儲存格上,使用者按一下滑鼠按鈕時呼叫。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 OnMouseDoubleClick 當滑鼠指標在儲存格上,使用者按兩下滑鼠按鈕時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnMouseDown 當滑鼠指標在儲存格上,使用者按住滑鼠按鈕時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 OnMouseEnter 當滑鼠指標移到儲存格上方時呼叫。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 OnMouseLeave 當滑鼠指標離開儲存格時呼叫。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 OnMouseMove 當滑鼠指標移到儲存格內時呼叫。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 OnMouseUp 當滑鼠指標在儲存格上,使用者釋放滑鼠按鈕時呼叫。 (繼承自 DataGridViewCell)。
受保護的方法 Paint 繪製目前的DataGridViewComboBoxCell。 (繼承自 DataGridViewComboBoxCell)。
受保護的方法 PaintBorder 繪製目前 DataGridViewCell 的框線。 (繼承自 DataGridViewCell)。
受保護的方法 PaintErrorIcon 繪製目前 DataGridViewCell 的錯誤圖示。 (繼承自 DataGridViewCell)。
公用方法 ParseFormattedValue 剖析值 (覆寫 DataGridViewComboBoxCell.ParseFormattedValue(Object, DataGridViewCellStyle, TypeConverter, TypeConverter)。)
公用方法 PositionEditingControl 設定由 DataGridView 控制項中的儲存格裝載之編輯控制項的位置和大小。 (繼承自 DataGridViewCell)。
公用方法 PositionEditingPanel 設定由儲存格裝載之編輯面板的位置和大小,並傳回編輯面板中編輯控制項的標準界限。 (繼承自 DataGridViewCell)。
受保護的方法 RaiseCellClick 引發DataGridView.CellClick事件。 (繼承自 DataGridViewElement)。
受保護的方法 RaiseCellContentClick 引發DataGridView.CellContentClick事件。 (繼承自 DataGridViewElement)。
受保護的方法 RaiseCellContentDoubleClick 引發DataGridView.CellContentDoubleClick事件。 (繼承自 DataGridViewElement)。
受保護的方法 RaiseCellValueChanged 引發DataGridView.CellValueChanged事件。 (繼承自 DataGridViewElement)。
受保護的方法 RaiseDataError 引發DataGridView.DataError事件。 (繼承自 DataGridViewElement)。
受保護的方法 RaiseMouseWheel 引發Control.MouseWheel事件。 (繼承自 DataGridViewElement)。
受保護的方法 SetValue 設定儲存格的值。 (繼承自 DataGridViewCell)。
公用方法 ToString 傳回描述目前物件的字串。 (繼承自 DataGridViewComboBoxCell)。

回頁首

備註

透過反映建立時,這個類別必須是公用。

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Modeling.Design 命名空間