ActiveReports 8
X1 Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > Line Class : X1 Property

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Property X1 As System.Single
C# 
public System.float X1 {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#Copy Code
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 BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Line Class
Line Members
ActiveReports6~GrapeCity.ActiveReports.Line~X2
ActiveReports6~GrapeCity.ActiveReports.Line~Y1
ActiveReports6~GrapeCity.ActiveReports.Line~Y2