ActiveReports 9
SetBounds Method (ARControl)
Example 

Rectangle that defines the location and size of the control.
Sets the bounds of the control to the specified rectangle.
Syntax
'Declaration
 
Public Sub SetBounds( _
   ByVal bounds As RectangleF _
) 
public void SetBounds( 
   RectangleF bounds
)

Parameters

bounds
Rectangle that defines the location and size of the control.

Return Value

The rectangle is defined using float or Single values in inches.
Example
private void detail_Format(object sender, System.EventArgs eArgs)
{
    System.Drawing.RectangleF b = new System.Drawing.RectangleF();
    b.X=2;
    b.Y=1;
    b.Width=2;
    b.Height=1;
    this.barcode2.SetBounds(b);
}
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    Dim b As New System.Drawing.RectangleF
    With b
        .X = 2
        .Y = 1
        .Width = 2
        .Height = 0.5
    End With
    Me.Barcode2.SetBounds(b)
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

ARControl Class
ARControl Members

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum