Source Members
Include Protected Members
Include Inherited Members
Represents a source file in the language service and controls parsing operations on that source.
The Source type exposes the following members.
Constructors
Name
Description
Initializes a new instance of the Source class.
Top
Methods
Name
Description
Overloaded. Begins a parsing operation.
Determines whether the source file can be closed.
Gets the screen column position corresponding to the specified character offset, taking into account tab size.
Comments out a span of source using block comments.
Comments out a span of source using line comments.
Comments out the specified span of source.
Starts an IntelliSense member completion operation.
Creates an instance of an AuthoringSink object for use in parsing operations.
Creates a new instance of a CompletionSet class.
Overloaded. Creates an instance of a DocumentTask object representing a parsing error.
Creates a new instance of a MethodData object that handles the IntelliSense method tip mode.
Removes the IntelliSense method tip or completion list from view, whichever was active.
Called in preparation of destroying this Source object.
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Executes the specified command on the specified region.
The class destructor, called just before the object is destroyed. (Overrides Object.Finalize().)
Gets the colorizer associated with this Source object.
Gets information on what defines a comment in the language.
Gets the span occupied by the entire source file.
Gets an expansion provider in support of code snippets.
Gets the file name of the source file.
Serves as a hash function for a particular type. (Inherited from Object.)
Gets the hidden region manager if available.
Gets the text on the specified line.
Gets the number of lines in the source file.
Gets the line and column for the specified position.
Gets the length of the specified line.
Determines which marker commands can be shown on a context menu for the specified hidden region.
Gets the newline character used at the end of the specified line.
Overloaded. Gets the text span between a matching pair (or triplet) of language elements.
Gets the position corresponding to the given line and character offset location.
Gets the task provider that manages the error tasks.
Overloaded. Gets text from the source file.
Gets the IVsTextLines object associated with this Source object.
Gets the text from the source up to and including the given line number.
Gets the text in the given hidden region to be used in a tool tip.
Gets information about the token at the specified position.
Gets the index of the TokenInfo object that includes the supplied column number.
Gets the type of the current instance. (Inherited from Object.)
Gets the user data associated with the specified GUID.
Gets the span occupied by the word at the specified location.
Ensures that the given span in the given hidden region is visible.
Highlights the spans of a pair of language elements, given the position of one of the elements.
Creates a shallow copy of the current Object. (Inherited from Object.)
Displays an IntelliSense method tip showing a method's signature as it is entered.
Converts the newlines in the specified text to the specified newline.
Called just before a hidden region session is closed.
Called when one or more lines' attributes (font, color) have changed.
Called when a line's text has changed.
Called when a code snippet is committed to the source file.
Handles IntelliSense-oriented commands.
Called when a hidden region has changed.
Called when no other events are being handled.
Called when user data has been changed in a text buffer.
Marks the Source object as being open.
Updates all hidden regions based on the given list of hidden regions.
Updates the syntax highlighting on the specified range of lines.
Format the specified span of source.
Removes all hidden regions from the current view.
Removes the specified error task from the error Task window.
Returns the offset of the first non-whitespace character on the given line.
Overloaded. Puts the specified text into the source file.
Sets the given user data property to the given value.
Returns a string that represents the current object. (Inherited from Object.)
Adjusts the given span to skip leading and trailing whitespace.
Removes comment characters from around the specified span.
Removes line comment characters from the beginning of each line in the given span.
Removes any comment characters from the beginning and end of the given span.
Gets the character offset on the given line corresponding to the specified screen column position.
Top
Properties
Name
Description
Gets the number of changes made to the source file since it was opened.
Gets or sets the IVsTextColorState object that is used in various parsing tasks.
Gets whether the parser has completed at least once.
Gets the CompletionSet collection used for this instance of the Source class.
Gets a range that identifies the changed lines in the source.
Gets the current state of the source file.
Gets whether the IntelliSense member completion or method tip modes are active.
Gets or sets whether any of the lines of source have changed.
Gets the language service associated with the source file.
Gets the duration of the last parse operation.
Gets or sets whether outlining is currently enabled.
Top