See Also

Line Class  | Line Members  | X1  | Y1  | Y2

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

X2 Property

Gets or sets the horizontal coordinate of the line's end point.

[Visual Basic]
Public Property X2 As Single
[C#]
public float X2 {get; set;}

Remarks

Line coordinates are relative to the section's top left corner.   Coordinate units using the API are in inches. You can use the ActiveReport.CmToInch and ActiveReport.InchToCm methods to convert to metric units.  The designer supports both metric and inch units.

Example

[C#] 

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

    this.Line1.X1 = 1.0f; 
    this.Line1.X2 = 4.0f; 
    this.Line1.Y1 = 0.5f; 
    this.Line1.Y2 = 0.5f; 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
    Me.Line1.X1 = 1.0F
    Me.Line1.X2 = 4.0F
    Me.Line1.Y1 = 0.5F
    Me.Line1.Y2 = 0.5F
End Sub

See Also

Line Class  | Line Members  | X1  | Y1  | Y2

 

 


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