See Also

ARControl Class  | ARControl Members

Language

Visual Basic

C#

Show All

bounds
Rectangle that defines the location and size of the control.
See Also Languages ActiveReports Send feedback to Data Dynamics

SetBounds Method

Sets the bounds of the control to the specified rectangle.

[Visual Basic]
Public Sub SetBounds( _    ByVal bounds As RectangleF _ )
[C#]
public void SetBounds(    RectangleF bounds );

Parameters

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

Return Type

The rectangle is defined using float or Single values in inches.

Example

[C#] 

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); 
}

[Visual Basic] 

Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.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

See Also

ARControl Class  | ARControl Members

 

 


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