Determines whether the specified control is a member of the collection.
[Visual Basic]
Public Function Contains( _
ByVal control As ARControl _
) As Boolean
Parameters
- control
- The control to locate in the collection.
Return Type
Boolean. Returns True if the control is a member of the collection; otherwise, False.
Example
[C#]
private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs) { DataDynamics.ActiveReports.TextBox t = new DataDynamics.ActiveReports.TextBox(); t.Text="Insert text here."; this.Sections[0].Controls.Add (t); if (this.Sections[0].Controls.Contains(t)) { System.Windows.Forms.MessageBox.Show("t"); } } |
[Visual Basic]
Private Sub rptDD_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
Dim t As New DataDynamics.ActiveReports.TextBox
t.Text = "Insert text here."
Me.Sections(0).Controls.Add(t)
If Me.Sections(0).Controls.Contains(t) Then
MsgBox("t")
End If
End Sub |
See Also
ControlCollection Class
| ControlCollection Members
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.