Controls Positioning

<< Click to Display Table of Contents >>

Navigation:  User Interface Reference > Report Designer > Report Designer for WinForms > Create Reports > Basic Operations >

Controls Positioning

Interface Elements for Desktop > Report Designer > Report Designer for WinForms > Create Reports > Basic Operations > Controls Positioning

This document describes how to easily construct professional looking reports, by precisely aligning their elements to each other. For this, the two following capabilities are introduced in the Report Designer.

Snap Grid

Snap Lines

You can choose which mode to use for controls alignment within your report, by setting its Snapping Mode.

img11118

ExpandedCollapsed Snap Grid

When a report is being designed in the Design Panel, it is lined up by the Snap Grid. This helps to establish the distance between report elements, and to precisely align them to each other.

img11119

To quickly align a control to the report's Snap Grid, right click the control, and in the invoked Context Menu, click Align To Grid.

img11120

You can choose whether the Snap Grid should be visible, by selecting your report, and setting the Draw the Grid option in the Property Grid.

img11123

You also can adjust the Snap Grid Size, which is measured in the measurement units set for your report.

The Snap to Grid option specifies whether controls are snapped to the Grid when they are moved as usual (with no additional keys being hold down). When the Snap to Grid option is enabled, the default move behavior works in the following way.

For controls to be aligned to the Snap Grid while being moved:

- Using the keyboard: move them using the ARROW keys.

- Using the mouse: move them as usual.

For controls to ignore the Snap Grid while being moved:

- Using the keyboard: move them using ARROW keys while hold down CTRL.

- Using the mouse: move them while hold down ALT.

Disabling the Snap to Grid option swaps the default manipulation to its opposite (you should press CTRL or ALT, to enable the Grid snapping).

ExpandedCollapsed Snap Lines

Instead of the Snap Grid for control positioning and alignment, you can utilize the Snap Lines. These are guide lines appearing when a control is being moved, and indicating the distance to other report elements (bands and controls).

img11122

For each report element, you can modify its default Snap Line spacing (paddings for bands and Panel, and margins for other controls) using the Property Grid.

img11121

To learn how to manage the position of multiple controls at one time, refer to Change the Layout of Report Elements.

ExpandedCollapsed See Also

Change Measurement Units of a Report

Change Page Settings of a Report

Copyright (c) 1998-2016 Developer Express Inc. All rights reserved.

Send Feedback on this topic to DevExpress.