ActiveReports3 Request technical support
Border Property
See Also  Example


Gets a border object that defines the border style for each edge of the control.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Border As Border
Visual Basic (Usage)Copy Code
Dim instance As ARControl
Dim value As Border
 
value = instance.Border
C# 
public Border Border {get;}

Return Value

Default border object.

Example

C#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{
   DataDynamics.ActiveReports.Border b =
new DataDynamics.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;
}
Visual BasicCopy Code
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    Dim b As New DataDynamics.ActiveReports.Border
    Me.TextBox1.Border.BottomStyle = BorderLineStyle.ThickDash
    Me.TextBox1.Border.TopStyle = BorderLineStyle.ThickDash
    b = Me.TextBox1.Border.Clone()
    Me.TextBox2.Border.BottomStyle = b.BottomStyle
    Me.TextBox2.Border.TopStyle = b.TopStyle
End Sub

See Also