Completion 類別
表示完成項目,包括圖示、 插入文字,以及顯示的文字,在CompletionSet。
繼承階層架構
Object
Microsoft.VisualStudio.Language.Intellisense.Completion
Microsoft.VisualStudio.Language.Intellisense.Completion2
命名空間: Microsoft.VisualStudio.Language.Intellisense
組件: Microsoft.VisualStudio.Language.Intellisense (在 Microsoft.VisualStudio.Language.Intellisense.dll 中)
語法
'宣告
Public Class Completion _
Implements IPropertyOwner
public class Completion : IPropertyOwner
public ref class Completion : IPropertyOwner
type Completion =
class
interface IPropertyOwner
end
public class Completion implements IPropertyOwner
Completion 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
![]() |
Completion() | 初始化 Completion 的新執行個體。 |
![]() |
Completion(String) | 初始化新的執行個體的Completion具有指定文字的顯示。 |
![]() |
Completion(String, String, String, ImageSource, String) | 使用指定的文字和描述,初始化 Completion 的新執行個體。 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
![]() |
Description | 取得可加上顯示的文字,完成時顯示的描述。 |
![]() |
DisplayText | 取得 IntelliSense 展示器所要顯示的文字。 |
![]() |
IconAutomationText | 取得或設定要當做自動化名稱做為圖示時所顯示的文字。 |
![]() |
IconSource | 取得或設定可用以描述完成的圖示。 |
![]() |
InsertionText | 取得要在此完成被認可時插入緩衝區中的文字。 |
![]() |
Properties | 取得完成的屬性。 |
回頁首
方法
名稱 | 描述 | |
---|---|---|
![]() |
Equals | 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。 |
![]() |
Finalize | 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。 |
![]() |
GetHashCode | 做為預設雜湊函式。 (繼承自 Object)。 |
![]() |
GetType | 取得目前實例 Type 的屬性。 (繼承自 Object)。 |
![]() |
MemberwiseClone | 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。 |
![]() |
ToString | 傳回代表目前物件的字串。 (繼承自 Object)。 |
回頁首
範例
這個類別的範例,請參閱逐步解說: 顯示陳述式完成。
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。