Share via


Methods

Home Page (Objects)OverviewFAQReference

Methods are actions you take against objects. For example, to add a document to the collection of open documents, you use the Add method of the Documents object.

For more background information about methods, see Applying Methods to Developer Studio Objects.

For examples of using methods, see the macro samples provided with Developer Studio.

The following methods are available:

Method Description
Add Creates a document of a specified type.
AddBreakpointAtLine Adds an unconditional location breakpoint to a line.
AddCommand Adds a command defined by an add-in to Developer Studio.
AddCommandBarButton Creates a toolbar and toolbar buttons for an add-in.
AddConfiguration Adds a configuration to the project.
AddCustomBuildStep Adds a custom build step to a specified configuration.
AddCustomBuildStepToFile Adds a custom build step to a specified file.
AddFile Adds a file to the project.
AddFileSettings Changes the settings of a specified file.
AddKeyBinding Binds one or more keystrokes to a command.
AddProject Creates a new project and adds it to the workspace.
AddToolSettings Changes the settings of a specified tool, such as the Visual C++ compiler.
Arrange Tiles, maximizes, or minimizes all open windows.
Backspace Performs the function of the BACKSPACE key.
Build Builds a specified configuration by processing only the files that have changed.
Cancel Cancels a selection.
ChangeCase Changes the case of a selection.
CharLeft Moves the insertion point one character to the left.
CharRight Moves the insertion point one character to the right.
Clean Cleans a specified configuration by deleting all intermediate and output files generated by the configuration.
ClearBookmark Removes all unnamed bookmarks on the current line.
ClearBookmarks Removes all unnamed bookmarks in a document.
Close Closes windows.
CloseAll Closes all windows or documents.
Copy Copies the selected text to the Clipboard.
Cut Removes the selected text and adds it to the Clipboard.
Delete Performs the function of the DELETE key.
DeleteWhitespace Deletes white space adjacent to the insertion point.
DestructiveInsert Inserts text in Overtype mode.
EnableModeless Enables or disables existing modeless windows in Developer Studio.
EndOfDocument Moves the insertion point to the end of the document.
EndOfLine Moves the insertion point to the end of the last line in a selection.
Evaluate Evaluates an expression, as if you typed it in the Visual C++ debugger's Watch window.
ExecuteCommand Executes a specified command or VBScript macro.
ExecuteConfiguration Runs the program in the current workspace.
FindText Starting after the current selection, FindText searches the rest of a document for a specified string. If the string is found, FindText moves the selection to that string.
GetPackageExtension Provides access to objects from third parties or other Microsoft products that extend the Developer Studio object model.
Go Runs the current program under the debugger.
GoToLine Moves the insertion point to a specified line in a document.
Indent Indents text.
Item Gets a specified breakpoint, configuration, document, project, or window from a collection.
LineDown Moves the insertion point down one line.
LineUp Moves the insertion point up one line.
MakeCurrentSettingsDefault Changes the default settings for this configuration to the values of the current settings.
MarkText Searches a document for a specified string. If the string is found, the MarkText method marks the lines containing the string with unnamed temporary bookmarks.
MoveTo Moves the insertion point to a specified line and column.
NewLine Creates a new line.
NewWindow Creates a new window for a document.
NextBookmark Moves the insertion point to the next unnamed bookmark in a document.
Open Opens a document with a specified file name.
PageDown Moves the insertion point down one page.
PageUp Moves the insertion point up one page.
Paste Replaces a selection with the contents of the Clipboard.
PreviousBookmark Moves the insertion point to the previous unnamed bookmark in a document.
PrintOut Sends a document to the current printer.
PrintToOutputWindow Directs the output from a macro to the Macro tab of the Output window.
Quit Quits Developer Studio.
RebuildAll Rebuilds a specified configuration by processing all files in the configuration, whether or not the files have changed.
Redo Reapplies previous editing actions that have been undone.
Remove Removes a breakpoint from the Breakpoints collection.
RemoveAllBreakpoints Removes all breakpoints in the Breakpoints collection.
RemoveBreakpointAtLine Removes all breakpoints on a line.
RemoveFileSettings Removes the settings of a specified file.
RemoveToolSettings Removes the settings of a specified tool, such as the VC++ compiler.
ReplaceText Replaces all instances of a string or regular expression with another string or regular expression.
Restart Restarts a program that is being debugged.
RunToCursor In a program you are debugging, sets a temporary breakpoint at the cursor (insertion point) and then starts execution of the program.
Save Saves a document to a file.
SaveAll Saves all open documents in the collection.
SelectAll Extends the selection to include the entire document.
SelectLine Selects the line defined by the CurrentLine property.
SetAddInInfo Provides Developer Studio with information about an add-in, when the add-in is loaded. The add-in calls SetAddInInfo.
SetBookmark Sets an unnamed bookmark at the active end of a selection.
SetNextStatement Specifies the next statement to execute in a program that you are debugging.
ShowCurrentStatement In a program you are debugging, moves the insertion point to the line containing the current instruction.
SmartFormat Formats text in a selection according to the current smart formatting settings.
StartOfDocument Moves the insertion point to the beginning of the document.
StartOfLine Moves the insertion point to the beginning of a line.
StepInto Steps into a called function, executing each instruction step by step.
StepOut Stops stepping through a called function, executes the remainder of the function, exits the function, and then breaks at the statement after the function call.
StepOver Executes a called function without stepping through it.
Stop Stops execution of a program you are debugging.
Tabify Converts spaces to tabs in a selection.
Undo Reverses previous editing actions on a document.
Unindent Removes one indent from all lines in a selection.
Untabify Converts tabs to spaces in a selection.
WordLeft Moves the insertion point one word to the left.
WordRight Moves the insertion point one word to the right.