Gets or sets the default units of measure of the report's elements who do not explicitly specify units.
Namespace: MindFusion.Reporting.Wpf
Assembly: MindFusion.Reporting.Wpf
SyntaxC#
Copy Code
|
|---|
public GraphicsUnit MeasureUnit { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property MeasureUnit As GraphicsUnit |
An instance of the GraphicsUnit class.
RemarksThis property specifies the default unit of measure in the report. If the location or size of a report item do not have explicit unit of measure, this value will be used.
ExampleConsider for example the following report, declared in XAML:
XAML
Copy Code
|
|---|
<r:Report MeasureUnit="Millimeter"> |
The size of the first label does not explicitly specify units of measure therefore it will use the report's units of measure - millimeters and the labels size will be 100x20 millimeters. The second label explicitly specifies points as units of measure for its size, therefore its size will be 100x20 points.
See Also