Determine whether an Layer is in the LayerCollection.

Namespace: TallComponents.PDF
Assembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0

Syntax

C#
public bool Contains(
	Layer layer
)
Visual Basic
Public Function Contains ( _
	layer As Layer _
) As Boolean

Parameters

layer
Type: TallComponents.PDF..::..Layer
The Layer to verify.

Return Value

True if the Layer is found in this LayerCollection, false otherwise.

Remarks

The layer does not accept a nullNothingnullptra null reference (Nothing in Visual Basic) as a valid value.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe given layer is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also