Share via


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

'Declaration
Public Function TypeChar ( _
    ch As Char _
) As Integer
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

See Also

Reference

ViewFilter Class

Microsoft.VisualStudio.Package Namespace