ViewFilter.TypeChar Method
Executes a TYPECHAR on the current command target chain.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
‘선언
Public Function TypeChar ( _
ch As Char _
) As Integer
‘사용 방법
Dim instance As ViewFilter
Dim ch As Char
Dim returnValue As Integer
returnValue = instance.TypeChar(ch)
public int TypeChar(
char ch
)
public:
int TypeChar(
wchar_t ch
)
member TypeChar :
ch:char -> int
public function TypeChar(
ch : char
) : int
Parameters
- ch
Type: System.Char
[in] The character command that is to be executed. This can only be a character that can be typed.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
This method is used to insert a character command into the command target chain by calling the ExecCommand method. This is done when the character command may have been consumed by a handler in the language service but the language service wants the character to also be handled as a normal command.
.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.