MethodTextType Enumeration
Identifies different portions of the method tip to provide information on.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
| Member name | Description | |
|---|---|---|
| MTT_CLOSEBRACKET | Closed bracket delimiter. Default value is a right parenthesis. To show nothing in the bracket location, return an empty string in GetMethodText. | |
| MTT_DELIMITER | Parameter delimiter. default is ", ". You must specify the space if you want it included in your delimiter string. | |
| MTT_DESCRIPTION | Description of method, which is provided its own line. | |
| MTT_NAME | Method name. | |
| MTT_OPENBRACKET | Open bracket delimiter. Default value is a left parenthesis. To show nothing in the bracket location, return an empty string in GetMethodText. | |
| MTT_TYPEPOSTFIX | Return type that is provided after the variable name in code. For example, the "Long" type in Visual Basic, which is written as "MyVariable AsLong" in code. | |
| MTT_TYPEPREFIX | Return type that is provided before the variable name in code. For example, the "Long" type in Visual C++, which is written as "Long MyVariable" in code. |
The view calls GetMethodText with both MTT_TYPEPREFIX and MTT_TYPEPOSTFIX. Return E_FAIL or E_NOTIMPL for the option that you do not implement. GetMethodText can return null for any of MethodTextType values except MTT_NAME. Any values that are null or an empty string, in the case of MTT_OPENBRACKET and MTT_CLOSEBRACKET, are not displayed. The return format is as follows: [TYPEPREFIX] [NAME] ( <parameters> ) [TYPEPOSTFIX] [DESCRIPTION].
From textmgr.idl: