Back to Devexpress

XtraReport.SnapGridSize Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-7f62328e.md

latest2.5 KB
Original Source

XtraReport.SnapGridSize Property

Specifies the dimensions of the report designer snap grid.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[SRCategory(ReportStringId.CatDesign)]
public float SnapGridSize { get; set; }
vb
<SRCategory(ReportStringId.CatDesign)>
Public Property SnapGridSize As Single

Property Value

TypeDescription
Single

A Single value, that specifies the snap grid size. Note that it should be greater than 0.

|

Remarks

The SnapGridSize property is intended to change the grid’s cell size, and it is measured in units specified via the XtraReport.ReportUnit property.

|

ReportUnit = HundrethsOfAnInch

SnapGridSize = 12.5

|

ReportUnit = HundrethsOfAnInch

SnapGridSize = 15

| | --- | --- | |

|

|

The default value of this property is also tied to the specified report unit: when it is set to HundrethsOfAnInch , the default value is 12.5 ; and, when it is set to TenthsOfAMillimeter , the default value is 31.75.

To specify whether to snap report controls to the grid, use the XtraReport.SnappingMode property. To show or hide the grid, use the XtraReport.DrawGrid property.

See Also

SnapGridStepCount

ReportUnit

SnappingMode

DrawGrid

XtraReport Class

XtraReport Members

DevExpress.XtraReports.UI Namespace