MindFusion.Reporting for Silverlight Programmer's Guide
Report.MeasureUnit Property
See Also
 





Gets or sets the default units of measure of the report's elements who do not explicitly specify units.

Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight

 Syntax

C#  Copy Code

public GraphicsUnit MeasureUnit { get; set; }

Visual Basic  Copy Code

Public Property MeasureUnit As GraphicsUnit

 Property Value

An instance of the GraphicsUnit class.

 Remarks

This 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.

 Example

Consider for example the following report, declared in XAML:

XAML  Copy Code

<r:Report MeasureUnit="Millimeter">
  <r:Page>
    <r:Label Text="I use the report's unit of measure for my size."
      Location="0,0" Size="100,20" Background="PaleGoldenrod" />
    <r:Label Text="I use 1/72-th of an inch as units of measure for my size."
      Location="0,30" Size="100pt,20pt" Background="PaleVioletRed" />
  </r:Page>
</r:Report>

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

Report Members
Report Class
MindFusion.Reporting.Silverlight Namespace