Show: Delphi C++
Display Preferences

Structure View

From RAD Studio XE2
Jump to: navigation, search

Go Up to View Menu

View > Structure

Shows the hierarchy of source code or HTML displayed in the Code Editor, or components displayed on the Designer. When displaying the structure of source code or HTML, you can double-click an item to jump to its declaration or location in the Code Editor. When displaying components, you can double-click a component to select it on the form.

If your code contains syntax errors, they are displayed in the Errors node in the Structure View. You can double-click an error to locate the corresponding source in the Code Editor. ( (Not applicable for C++ development.)

Tip: You can control the content and appearance of the Structure View by choosing Tools > Options > Environment Options > Explorer and changing the settings.

Context Menu

Right-click the Structure View to display the following commands. The commands on the context menu depend on whether source code or components are displayed in the Structure View.

Item Description


Adds a new node to the Structure View.


Changes the name of the selected node in the Structure View.


Displays a submenu allowing you to undo changes, cut, copy, paste, delete, or select all of the controls on the Designer.


Displays a submenu allowing you to bring the selected control to the front or send it to the back of the the Designer.


Displays the Explorer Options dialog box allowing you to change the content and appearance of the Structure View.

Stay on Top

Displays the Structure View on top of the desktop even if other windows are displayed.


Enables drag-and-dock for the Structure View.

Toolbar (C++)

The Structure view contains a toolbar for C++ application development that allows you to control how the contents of the Structure view are displayed. It consists of the following buttons:

AlphaSort Sort Alphabetically

Sorts the contents of the Structure view alphabetically.

Group Types Group by type

Groups items into folders by type in the Structure view.

GroupByVisibility.bmp Group by visibility

Groups class members into folders by visibility: public, protected, private, and published. For C++ , 'Classes' is a generic group that encompasses classes, structs, unions and templates.

Show Type Show function and variable type

Displays the type to the right of the member in the Structure view.

Filter Visibility Filter by visibility (private, protected, public, _published)

Toggles the Structure view display through four different visibility levels. You can selectively display several different combinations of elements that were declared with the access specifiers __published, public, protected, and private.

The four successive tooltips (with 1 - 4 vertical bars) indicate the elements that are currently being displayed, as follows:

This Button Label and Tooltip

Means the Following Elements Are Being Displayed

Filter1.bmp Filter by visibility (__published)

Only __published

Filter2.bmp Filter by visibility (public, __published)

Both public and __published

Filter3.bmp Filter by visibility (protected, public, __published)

Protected, public, and __published

Filter4.bmp Filter by visibility (private, protected, public, __published)

All four visibility levels

See Also

Personal tools
Previous Versions
In other languages