ActiveReports 8
Clone Method
See Also  Example
GrapeCity.ActiveReports.Document.v8 Assembly > GrapeCity.ActiveReports Namespace > Border Class : Clone Method

Glossary Item Box

Creates a new object that is a copy of the current instance of the Border class.

Syntax

Visual Basic (Declaration) 
Public Function Clone() As Border
C# 
public Border Clone()

Example

Visual BasicCopy Code
Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
   Dim b As New GrapeCity.ActiveReports.Border
   Me.TextBox1.Border.BottomStyle = BorderLineStyle.DashDot
   Me.TextBox1.Border.TopStyle = BorderLineStyle.DashDot
   b = Me.TextBox1.Border.Clone()
   Me.TextBox2.Border.BottomStyle = b.BottomStyle
   Me.TextBox2.Border.TopStyle = b.TopStyle
End Sub
C#Copy Code
private void Detail_Format(object sender, System.EventArgs eArgs)
{
    GrapeCity.ActiveReports.Border b = new GrapeCity.ActiveReports.Border();
    this.TextBox1.Border.BottomStyle = BorderLineStyle.ThickDash;
    this.TextBox1.Border.TopStyle = BorderLineStyle.ThickDash;
    b = this.TextBox1.Border.Clone();
    this.TextBox2.Border.BottomStyle = b.BottomStyle;
    this.TextBox2.Border.TopStyle = b.TopStyle;
}

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