Completion Constructor (String, String, String, ImageSource, String)
Initializes a new instance of Completion with the specified text and description.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
Syntax
'宣言
Public Sub New ( _
displayText As String, _
insertionText As String, _
description As String, _
iconSource As ImageSource, _
iconAutomationText As String _
)
public Completion(
string displayText,
string insertionText,
string description,
ImageSource iconSource,
string iconAutomationText
)
public:
Completion(
String^ displayText,
String^ insertionText,
String^ description,
ImageSource^ iconSource,
String^ iconAutomationText
)
new :
displayText:string *
insertionText:string *
description:string *
iconSource:ImageSource *
iconAutomationText:string -> Completion
public function Completion(
displayText : String,
insertionText : String,
description : String,
iconSource : ImageSource,
iconAutomationText : String
)
Parameters
- displayText
Type: System.String
The text that is to be displayed by an IntelliSense presenter.
- insertionText
Type: System.String
The text that is to be inserted into the buffer if this completion is committed.
- description
Type: System.String
A description that can be displayed with the display text of the completion.
- iconSource
Type: System.Windows.Media.ImageSource
The icon.
- iconAutomationText
Type: System.String
The text to be used as the automation name for the icon.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.