# Change Ruler Measurements

Modify ruler measurements from inches to centimeters and centimeters to inches at run-time in ActiveReports.

## Content



To change measurements, you need to call measurement conversion at run-time, for example, the [CmToInch](/activereportsnet/api/v19.2/MESCIUS.ActiveReports/GrapeCity.ActiveReports.SectionReport.html#CMTOINCH) method or [InchToCm](/activereportsnet/api/v19.2/MESCIUS.ActiveReports/GrapeCity.ActiveReports.SectionReport.html#INCHTOCM) method at run-time. For example, you can use the following code when you are working in centimeters and need to convert a Label's position measurements from centimeters to inches at run-time.

1.  On the design surface select the section containing a control like a Label.
2.  In the [Properties Panel](/activereportsnet/docs/v19.2/developers/working-with-reports-devs/activereports-designer/properties-window), click the Events button to get a list of report events.
3.  Select the **Format** event and double-click to create an event-handling method.
4.  Add code like the following to the handler to set the size of the control using centimeters to inches.
    
    ```vbnet
    Me.Label1.Left = SectionReport1.CmToInch(2)
    Me.Label1.Top = SectionReport1.CmToInch(2)
    ```
    
    ```csharp
    this.label1.Left = SectionReport1.CmToInch(2);
    this.label1.Top = SectionReport1.CmToInch(2);
    ```
