Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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)

public enum MethodTextType

Member nameDescription
MTT_CLOSEBRACKETClosed bracket delimiter. Default value is a right parenthesis. To show nothing in the bracket location, return an empty string in GetMethodText.
MTT_DELIMITERParameter delimiter. default is ", ". You must specify the space if you want it included in your delimiter string.
MTT_DESCRIPTIONDescription of method, which is provided its own line.
MTT_NAMEMethod name.
MTT_OPENBRACKETOpen bracket delimiter. Default value is a left parenthesis. To show nothing in the bracket location, return an empty string in GetMethodText.
MTT_TYPEPOSTFIXReturn 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.
NoteNote

The returned text must include the "AS" keyword.

MTT_TYPEPREFIXReturn 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].

COM Signature

From textmgr.idl:

Show:
© 2015 Microsoft