Contains Method (ReportItemCollection)
Gets a value indicating whether the
ReportItemCollection contains the specified
ReportItem.
'Declaration
Public Overridable Function Contains( _
ByVal As ReportItem _
) As Boolean
Parameters
- value
- A ReportItem object for which to check.
Return Value
A
System.Boolean value.
true
if the
ReportItemCollection contains the specified
ReportItem; otherwise,
false
.
ReportItemCollection collection = new ReportItemCollection();
ReportItem item = new TextBox();
collection.Add(item);
bool contains = collection.Contains(item);