See Also

ActiveReport Class  | ActiveReport Members  | InchToCm

Language

Visual Basic

C#

Show All

value
The measurement in centimeters to be converted to inches.
See Also Languages ActiveReports Send feedback to Data Dynamics

CmToInch Method

Converts value from centimeters to inches.

[Visual Basic]
Public Shared Function CmToInch( _    ByVal value As Single _ ) As Single
[C#]
public static float CmToInch(    float value );

Parameters

value
The measurement in centimeters to be converted to inches.

Return Type

Single value representing the specified centimeters value in inches.

Remarks

ActiveReports uses inches for all coordinate and dimension properties.  This method helps convert centimeter values to inches.

Example

[C#] 

private void Detail_Format(object sender, System.EventArgs eArgs) 

    this.Label1.Left = ActiveReport1.CmToInch(2); 
    this.Label1.Left = ActiveReport1.CmToInch(2); 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Me.Label1.Left = ActiveReport1.CmToInch(2)
    Me.Label1.Left = ActiveReport1.CmToInch(2)
End Sub

See Also

ActiveReport Class  | ActiveReport Members  | InchToCm

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.