Class DesignUnits
- Namespace
- ReportWright.Design
- Assembly
- ReportWright.Design.dll
The designer's units (Appendix A.1): integer twips in the model, inches for display, CSS pixels only at the surface's emit boundary. Every constant the interaction contract names lives here, in twips.
public static class DesignUnits
- Inheritance
-
DesignUnits
- Inherited Members
Fields
- DuplicateOffset
Duplicate and paste offset: 0.2 in (A.4.3, A.4.4).
- FineNudge
The keyboard's fine nudge, never snapped (A.5): 15 twips, one CSS pixel at 100 %.
- MinimumSize
The minimum item size on each axis: 0.15 in (A.3.3).
- QuarterInch
Shift + arrow nudges by a quarter inch (A.5).
- SmartGuideDistance
The smart-guide capture distance: 0.04 in (A.3.4).
- SnapEighth
The coarse snap step: one eighth of an inch (A.1.4).
- SnapSixteenth
The default snap step: one sixteenth of an inch (A.1.4).
- TwipsPerInch
Twips per inch.
- TwipsPerPoint
Twips per point.
Methods
- Format(int)
Formats a measure the way the model stores it: points at 1-twip precision, invariant culture.
- FromPixels(double, int)
Converts CSS pixels back to twips at a zoom, rounded half away from zero.
- Inches(int)
Formats a measure for display, in inches with up to three decimals.
- Parse(string?, int)
Parses an RDL size string.
- Snap(int, int)
Snaps a coordinate to the nearest multiple of a step; a step of zero or less snaps nothing.
- ToPixels(int, int)
Converts twips to CSS pixels at a zoom, rounded once (A.1.2).