[]
Gets or sets a value representing the layout mode for the design surface, determining how controls are aligned and interact with the grid.
public LayoutMode LayoutMode { get; set; }
Type | Description |
---|---|
LayoutMode | The layout mode as defined by the LayoutMode enumeration. |
This functionality is currently supported for Section Reports only.
// Toggle the SnapGrid layout mode
private void ButtonSnapGrid_Click(object sender, EventArgs args)
{
_designer.LayoutMode = designer.LayoutMode ^ LayoutMode.SnapGrid;
}
// Toggle the SnapLines layout mode
private void ButtonSnapLines_Click(object sender, EventArgs args)
{
_designer.LayoutMode = designer.LayoutMode ^ LayoutMode.SnapLines;
}