MethodTextType Enumeration
Identifies different portions of the method tip to provide information on.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Public Enumeration MethodTextType
public enum MethodTextType
public enum class MethodTextType
type MethodTextType
public enum MethodTextType
Members
Member name | Description | |
---|---|---|
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. | |
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.
Note
The returned text must include the "AS" keyword.
|
|
MTT_NAME | Method name. | |
MTT_DESCRIPTION | Description of method, which is provided its own line. | |
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_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. |
Remarks
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 nulla null reference (Nothing in Visual Basic) for any of MethodTextType values except MTT_NAME. Any values that are nulla null reference (Nothing in Visual Basic) 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].
COM Signature
From textmgr.idl: