ListField 類別

Shape 功能變數能夠有效地顯示項目的清單。

繼承階層架構

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.ShapeField
    Microsoft.VisualStudio.Modeling.Diagrams.ListField

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

語法

'宣告
Public Class ListField _
    Inherits ShapeField
public class ListField : ShapeField

ListField 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 ListField(String) 初始化份類別的新執行個體。
公用方法 ListField(String, Boolean, String, String) 初始化份類別的新執行個體。

回頁首

屬性

  名稱 說明
公用屬性 AlternateFontId 取得或設定字型 id 為標準模式、 未選取的清單項目。
公用屬性 AnchoringBehavior 描述應該如何放置欄位的內容並將其相對於父 ShapeElement 自動調整本身。 (繼承自 ShapeField)。
公用屬性 DefaultAccessibleDescription 取得或設定預設的可存取描述。 (繼承自 ShapeField)。
公用屬性 DefaultAccessibleName 取得或設定可存取的物件由 shape 功能變數的預設名稱。 (繼承自 ShapeField)。
公用屬性 DefaultAccessibleState 取得可存取物件的 shape 功能變數的預設狀態。 (繼承自 ShapeField)。
公用屬性 DefaultBackgroundBrushId 取得或設定預設的筆刷來繪製背景的 shape 功能變數的 ID。 (繼承自 ShapeField)。
公用屬性 DefaultFocusable 取得由 shape 功能變數並驗證它是否可以接收焦點,或可讓 shape 功能變數會接收焦點。 (繼承自 ShapeField)。
公用屬性 DefaultInactiveSelectedBackgroundBrushId 取得或設定由 shape 功能變數的預設背景筆刷的 ID。 (繼承自 ShapeField)。
公用屬性 DefaultItemFocusable 取得或設定預設的所有清單項目可設定焦點的狀態。
公用屬性 DefaultItemIndent 取得要使用 [清單] 欄位的左下的方與左下的方的清單項目之間的標準的邊界。
公用屬性 DefaultItemSelectable 取得或設定預設可選取所有清單項目狀態。
公用屬性 DefaultPenId 取得或設定要用於 shape 功能變數的預設畫筆識別碼。 (繼承自 ShapeField)。
公用屬性 DefaultReflectParentFocusedState 取得子項塑造欄位,並且會驗證是否與其父圖案取得焦點,或設定以反映其父圖案的焦點狀態的能力時,它應該接收焦點。 (繼承自 ShapeField)。
公用屬性 DefaultReflectParentSelectedState 取得子項塑造欄位,並且會驗證是否應該會選取其父系圖形已選取,或設定的能力,以反映其父圖案的選取狀態時。 (繼承自 ShapeField)。
公用屬性 DefaultSelectable 取得 shape 功能變數,會驗證是否還可以選取預設或設定由 shape 功能變數的預設選取項目狀態。 (繼承自 ShapeField)。
公用屬性 DefaultSelectedBackgroundBrushId 取得或設定由 shape 功能變數的預設背景筆刷的 ID。 (繼承自 ShapeField)。
公用屬性 DefaultStringFormat 預設值的字串格式清單中的所有項目
公用屬性 DefaultVisibility 取得由 shape 功能變數並驗證它是否預設會出現,或設定預設的可視性由 shape 功能變數。 (繼承自 ShapeField)。
公用屬性 DisabledTextBrushId 取得或設定筆刷 id 為 [停用的清單項目的文字。
公用屬性 FocusBackgroundPenId 取得或設定用來建立具有焦點的清單項目大綱的畫筆識別碼。
公用屬性 FocusPenId 取得或設定用來建立具有焦點的清單項目大綱的畫筆識別碼。
公用屬性 InactiveSelectedBackgroundBrushId 取得或設定非作用中的選取的清單項目背景的筆刷 id。
公用屬性 InactiveSelectedDisabledTextBrushId 取得或設定筆刷 id 為非作用中已選取停用的清單項目的文字。
公用屬性 InactiveSelectedTextBrushId 取得或設定筆刷 id 為非作用中的選取的清單項目的文字。
公用屬性 JaggedSelectionRectangle 取得或設定 jaggedSelection 屬性。如果這個屬性設為 true,寬矩形範圍只會涵蓋子欄位,而不整個寬度的欄位的內容。這個屬性預設為 false。
公用屬性 Name 取得由 shape 功能變數的名稱。 (繼承自 ShapeField)。
公用屬性 NormalBackgroundBrushId 取得或設定標準模式、 未選取的清單項目背景的筆刷 id。
公用屬性 NormalFontId 取得或設定字型 id 為標準模式、 未選取的清單項目。
公用屬性 NormalTextBrushId 取得或設定筆刷 id 的標準模式、 未選取的清單項目的文字。
公用屬性 SelectedBackgroundBrushId 取得或設定選取的清單項目背景的筆刷 id。
公用屬性 SelectedDisabledTextBrushId 取得或設定筆刷 id 的已選取停用的清單項目的文字。
公用屬性 SelectedTextBrushId 取得或設定筆刷 id 文字的選取的清單項目。
公用屬性 SnakedList 取得值,指出是否將清單項目換行到多個資料行。如果這個屬性設定為 true,那麼 [清單] 欄位中的項目會 snaked 表單的資料行,如果有太多的項目,以符合清單中目前所佔據的空間。使清單將最大化,但可以在目前的大小顯示項目數的需要動態計算可能看得見的資料列和資料行目前數目。
公用屬性 WatermarkFormat 預設值的字串格式清單中的所有項目

回頁首

方法

  名稱 說明
公用方法 AccessibleDoDefaultAction 可存取物件不會執行預設動作。 (繼承自 ShapeField)。
公用方法 AllowInPlaceEditorAutoSize 可讓編輯器來自動調整大小 shape 功能變數中。 (繼承自 ShapeField)。
公用方法 AssociateValueWith(Store, AssociatedPropertyInfo) 將由 shape 功能變數產生關聯與網域屬性指派給圖形元素。 (繼承自 ShapeField)。
公用方法 AssociateValueWith(Store, Guid) 將由 shape 功能變數產生關聯與網域屬性指派給圖形元素。 (繼承自 ShapeField)。
公用方法 AssociateValueWith(Store, Guid, AssociatedPropertyInfo) 將由 shape 功能變數產生關聯與網域屬性指派給圖形元素。 (繼承自 ShapeField)。
公用方法 AssociateVisibilityWith(Store, AssociatedPropertyInfo) 建立由 shape 功能變數的可視性與網域屬性指派給圖形元素的關聯。 (繼承自 ShapeField)。
公用方法 AssociateVisibilityWith(Store, Guid) 建立由 shape 功能變數的可視性與網域屬性指派給圖形元素的關聯。 (繼承自 ShapeField)。
公用方法 AssociateVisibilityWith(Store, Guid, AssociatedPropertyInfo) 建立由 shape 功能變數的可視性與網域屬性指派給圖形元素的關聯。 (繼承自 ShapeField)。
公用方法 CanEditValue 取得由 shape 功能變數,並確認是否可以編輯。 (繼承自 ShapeField)。
公用方法 CommitPendingEdit 認可暫止的編輯。 (繼承自 ShapeField)。
公用方法 DoHitTest 擷取點擊測試的資訊,包括哪些清單項目。 (覆寫 ShapeField.DoHitTest(PointD, ShapeElement, DiagramHitTestInfo)。)
公用方法 DoKeyboardNavigation 要使用鍵盤巡覽 shape 功能變數中。 (繼承自 ShapeField)。
公用方法 DoPaint 繪製由 shape 功能變數。 (覆寫 ShapeField.DoPaint(DiagramPaintEventArgs, ShapeElement)。)
公用方法 EditValue(ShapeElement, DiagramClientView) 開啟由 shape 功能變數的就地編輯器。 (繼承自 ShapeField)。
公用方法 EditValue(ShapeElement, DiagramClientView, PointD) 開啟由 shape 功能變數的就地編輯器。 (繼承自 ShapeField)。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 FindFirstChild 在第一個子系 shape 功能變數中尋找父系 shape 功能變數。 (繼承自 ShapeField)。
公用方法 FindLastChild 在最後一個子系 shape 功能變數中尋找父系 shape 功能變數。 (繼承自 ShapeField)。
公用方法 FindNextChild 在下一個子系 shape 功能變數中尋找父系 shape 功能變數。 (繼承自 ShapeField)。
公用方法 FindNextInChildSubFields 在這個 ShapeField 的下一個子系子欄位中尋找這個巡覽順序。 (覆寫 ShapeField.FindNextInChildSubFields(ShapeElement, DiagramItem, Boolean)。)
公用方法 FindPreviousChild 在前一個子系 shape 功能變數中尋找父系 shape 功能變數。 (繼承自 ShapeField)。
公用方法 FindPreviousInChildSubFields 在這個 ShapeField 的前一個子系子欄位中尋找這個巡覽順序。 (覆寫 ShapeField.FindPreviousInChildSubFields(ShapeElement, DiagramItem, Boolean)。)
公用方法 Focused 取得由 shape 功能變數,並確認其是否有焦點。 (繼承自 ShapeField)。
公用方法 GetAccessibilityObject 取得指派給由 shape 功能變數的存取範圍物件。 (繼承自 ShapeField)。
公用方法 GetAccessibleChild 擷取指定索引相對應的可存取子系子欄位。 (覆寫 ShapeField.GetAccessibleChild(ShapeElement, Int32)。)
公用方法 GetAccessibleChildCount 擷取屬於這個 ShapeField 的存取子系數目。 (覆寫 ShapeField.GetAccessibleChildCount(ShapeElement)。)
公用方法 GetAccessibleDefaultActionDescription 取得可存取物件的預設的目的 shape 功能變數。 (繼承自 ShapeField)。
公用方法 GetAccessibleDescription 傳回清單欄位的預設可存取描述。 (覆寫 ShapeField.GetAccessibleDescription(ShapeElement)。)
公用方法 GetAccessibleHelp 取得可存取物件的 shape 功能變數說明。 (繼承自 ShapeField)。
公用方法 GetAccessibleHelpTopicFileName 取得 [說明] 中的主題,可存取物件。 (繼承自 ShapeField)。
公用方法 GetAccessibleHelpTopicId 取得指派給可存取物件的 [說明] 主題的 ID。 (繼承自 ShapeField)。
公用方法 GetAccessibleName 傳回清單欄位的預設可存取名稱。 (覆寫 ShapeField.GetAccessibleName(ShapeElement)。)
公用方法 GetAccessibleRole 擷取這個 ShapeField 的可存取角色。 (覆寫 ShapeField.GetAccessibleRole(ShapeElement)。)
公用方法 GetAccessibleState 取得可存取物件的 shape 功能變數的狀態。 (繼承自 ShapeField)。
公用方法 GetAccessibleValue Shape 功能變數中取得可存取物件的值。 (繼承自 ShapeField)。
公用方法 GetActiveInPlaceEditor 取得編輯器使用中。 (繼承自 ShapeField)。
公用方法 GetBackgroundBrush 取得用來繪製為圖形項目指派給這個 shape 功能變數的背景的筆刷。 (繼承自 ShapeField)。
公用方法 GetBackgroundBrushId 取得用來繪製為圖形項目指派給這個 shape 功能變數的背景的筆刷的 ID。 (繼承自 ShapeField)。
公用方法 GetBounds 取得相對於左上方的父圖案的全局單位表示這個 ShapeField 的界限。 (覆寫 ShapeField.GetBounds(ShapeElement)。)
公用方法 GetCursor 取得當滑鼠指向 [圖形] 欄位會出現指標。 (繼承自 ShapeField)。
公用方法 GetFocusable 取得由 shape 功能變數,並驗證它的電腦可以接收的焦點。 (繼承自 ShapeField)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetInPlaceEditorBounds 取得編輯器的界限。 (繼承自 ShapeField)。
公用方法 GetItemCount 在此清單的欄位中取得的項目數。
公用方法 GetItemFocusable 取得值,指出指定的清單項目可設定焦點。
公用方法 GetItemHeight 取得在全局單位表示的清單項目的標準列高。預設的行為,這個方法會傳回 GetItemTextHeight、 GetPaddingAboveItemText 和 GetPaddingBelowItemText 的總和。
公用方法 GetItemRectangle 取得清單項目矩形中相對於左上方的父圖案的全局單位表示。
公用方法 GetItemSelectable 取得值,指出指定的清單項目是否可選取。
受保護的方法 GetItemTextHeight 取得清單項目中的一行文字的高度。這個文字的高度 (Font.GetHeight()) 包含一些填補,讓 GetPaddingAboveItemText 和 GetPaddingBelowItemText 是其他除此之外與邊框距離。
公用方法 GetMaximumInPlaceEditorSize 取得編輯器的最大上限。 (繼承自 ShapeField)。
公用方法 GetMinimumInPlaceEditorSize 取得編輯器的最小的範圍。 (繼承自 ShapeField)。
公用方法 GetMinimumSize 取得由 shape 功能變數的最小寬度和高度。 (繼承自 ShapeField)。
受保護的方法 GetPaddingAboveItemText 傳回之項目的頂端和文字的頂端之間的間距。文字的高度 (Font.GetHeight()) 包含一些填補,所以這所填補。
受保護的方法 GetPaddingBelowItemText 傳回文字的下方和底部的項目之間的間距。文字的高度 (Font.GetHeight()) 包含一些填補,所以這所填補。
公用方法 GetPen 取得畫筆繪製已指派的 shape 功能變數的圖形項目。 (繼承自 ShapeField)。
公用方法 GetPenId 取得畫筆繪製已指派的 shape 功能變數的圖形元素的 ID。 (繼承自 ShapeField)。
公用方法 GetPotentialMouseAction 取得要啟動的使用者接下來按一下圖表上的特定點時的滑鼠動作。 (繼承自 ShapeField)。
公用方法 GetSelectable 取得由 shape 功能變數,並確認是否可以選取。 (繼承自 ShapeField)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 GetValue 取得由 shape 功能變數中的值。 (繼承自 ShapeField)。
公用方法 GetValueDomainPropertyInfo 取得網域屬性指派給由 shape 功能變數中的值。 (繼承自 ShapeField)。
公用方法 GetVisible 取得由 shape 功能變數,並驗證是否會出現。 (繼承自 ShapeField)。
公用方法 HasFocusedAppearance 取得由 shape 功能變數,會驗證是否看起來應該會有焦點。 (繼承自 ShapeField)。
公用方法 HasPendingEdit 取得由 shape 功能變數,並確認其就地編輯器是否使用中,並且變更已暫止。 (繼承自 ShapeField)。
公用方法 HasSelectedAppearance 取得由 shape 功能變數,會驗證是否顯示被選取。 (繼承自 ShapeField)。
公用方法 IsNavigationKey(Char) 取得使用者按下,並驗證是否它可用來瀏覽] 圖形的欄位之間的機碼。 (繼承自 ShapeField)。
公用方法 IsNavigationKey(Keys) 取得使用者按下,並驗證是否它們可用來瀏覽] 圖形的欄位之間的機碼。 (繼承自 ShapeField)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 NavigateAscend 將焦點移至前一個導覽順序選定圖案的 shape 功能變數中。 (繼承自 ShapeField)。
公用方法 NavigateDescend 將焦點移至下一步導覽順序選定圖案的 shape 功能變數中。 (繼承自 ShapeField)。
公用方法 NavigateToFirst 將焦點移至第一個選定圖案的巡覽順序的 shape 功能變數中。 (繼承自 ShapeField)。
公用方法 NavigateToLast 將焦點移至最後一個導覽順序選定圖案的 shape 功能變數中。 (繼承自 ShapeField)。
公用方法 NavigateToNext 將焦點移至下一步導覽順序選定圖案的 shape 功能變數中。 (繼承自 ShapeField)。
公用方法 NavigateToPrevious 將焦點移至前一個導覽順序選定圖案的 shape 功能變數中。 (繼承自 ShapeField)。
受保護的方法 OnBeginEdit 當就地編輯已開始時,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnClick 當使用者按一下 shape 功能變數時,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnDoubleClick 當使用者已按兩下 shape 功能變數時,系統會通知的接聽程式。 (繼承自 ShapeField)。
受保護的方法 OnEndEdit 當就地編輯完成後,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnKeyDown 使用者已按住按鍵時指向 shape 功能變數時,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnKeyPress 使用者按下按鍵時指向 shape 功能變數後,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnKeyUp 當使用者放開了索引鍵指向 shape 功能變數時,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnMouseDown 當使用者透過 shape 功能變數時按住滑鼠時,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnMouseMove 當滑鼠移 shape 功能變數時,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnMouseUp 使用者已在 shape 功能變數上,放開滑鼠按鈕時,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 OnMouseWheel 當滑鼠經過旋轉 shape 功能變數上時,系統會通知的接聽程式。 (繼承自 ShapeField)。
公用方法 Selected 取得由 shape 功能變數,並確認是否已選取。 (繼承自 ShapeField)。
公用方法 SetSelectionRange 將選取範圍設定為某個範圍的子欄位 (覆寫 ShapeField.SetSelectionRange(SelectedShapesCollection, DiagramItem, DiagramItem)。)
公用方法 SetValue 將指定的值指派給 shape 功能變數中。 (繼承自 ShapeField)。
公用方法 SetVisible 設定由 shape 功能變數的可視性。 (繼承自 ShapeField)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

備註

若要加入 ShapeElement 份,請覆寫 ShapeElement 的 InitializeShapeFields 方法。ShapeElement 也必須實作 IListFieldContainer 介面。

執行緒安全

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

請參閱

參考

Microsoft.VisualStudio.Modeling.Diagrams 命名空間