Compartir a través de


ViewFilter Members

Include Protected Members
Include Inherited Members

This class handles various editing and IntelliSense commands for a language service.

The ViewFilter type exposes the following members.

Constructors

  Name Description
Public method ViewFilter Initializes a new instance of the ViewFilter class.

Top

Methods

  Name Description
Public method CanReformat Determines whether the source can be reformatted by the language service.
Public method Close Closes down the view filter, releasing any allocated resources.
Public method CommentSelection Handles the COMMENT_BLOCK command to comment out the current selection in the view.
Public method CreateTextTipData Creates a new instance of the TextTipData class.
Public method Dispose Frees up any resources allocated when the ViewFilter class was created.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method ExecCommand Executes the specified command.
Protected method Finalize Performs final clean up just before the ViewFilter object is destroyed. (Overrides Object.Finalize().)
Public method GetDataTipText Returns text about the given span that can be shown in a tool tip.
Public method GetExpansionProvider Returns an ExpansionProvider object.
Public method GetFullDataTipText Returns a string that can be used in a tool tip, taking into account additional sources of text such as a debugger.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetPairExtents Returns the extent of the innermost matching pair of language elements that contains the given location.
Public method GetSelection Returns the extent of the currently selected text.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetWordExtent Returns the extent of the word or expression that contains the given location.
Public method HandleGoto Processes the specified "go to" command.
Public method HandlePostExec Handles post-processing after a command has been executed.
Public method HandlePreExec Handles pre-processing before a command is executed.
Public method HandleQuickInfo Handles the QUICKINFO command to show tool tip information about the selected identifier or expression.
Public method HandleSmartIndent Handles smart indentation.
Protected method InnerExec Executes an IOleCommandTarget command.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnAfterSnippetsKeyBindingChange Called after there has been a change in the key binding for the Invoke Snippet From Shortcut command.
Public method OnAfterSnippetsUpdate Called whenever a folder that contains snippets has been updated and the snippets from that folder have been read in.
Public method OnAutoComplete Called when the AUTOCOMPLETE command is received.
Public method OnChangeCaretLine Called when the caret moves to another line.
Public method OnChangeScrollInfo Called when the scroll information for the specified scroll bar has changed.
Public method OnKillFocus Called when the specified view loses focus.
Public method OnSetBuffer Called when the buffer of lines is being set or changed in the given view.
Public method OnSetFocus Called when the specified view gains focus.
Protected method QueryCommandStatus Determines if the specified command is supported.
Protected method QueryParameterList Called to obtain the parameter for the specified command.
Public method ReformatDocument Handles the FORMATDOCUMENT command to reformat the entire document.
Public method ReformatSelection Handles the FORMATSELECTION command to reformat a selection.
Public method RegisterExpansionManagerEventHandlers
Public method RegisterTextViewEventHandlers
Public method ShowContextMenu(Int32, Guid, IOleCommandTarget) Handles the SHOWCONTEXTMENU command to show a context menu.
Public method ShowContextMenu(Int32, Guid, IOleCommandTarget, Int32, Int32)
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)
Public method TypeChar Executes a TYPECHAR on the current command target chain.
Public method UncommentSelection Handles the UNCOMMENTBLOCK command to uncomment the current selection in the current view.

Top

Properties

  Name Description
Public property CodeWindowManager Gets the CodeWindowManager that owns this ViewFilter.
Public propertyStatic member IsExecutingCommand
Public property IsExpansionUIActive Determines if the code snippet expansion user interface (UI) is active.
Protected property SnippetBound Gets or sets whether or not a key has been bound to the Invoke Snippet From Shortcut command.
Public property Source Gets the Source associated with this ViewFilter.
Public property TextTipData Gets or sets the TextTipData associated with this view.
Public property TextView Gets the IVsTextView object associated with this ViewFilter object.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IOleCommandTarget.Exec Handles execution of a supported command.
Explicit interface implemetationPrivate method IOleCommandTarget.QueryStatus Determines if the specified commands in the given command group are supported.

Top

See Also

Reference

ViewFilter Class

Microsoft.VisualStudio.Package Namespace