Determine whether an Layer is in the LayerCollection.
Namespace: TallComponents.PDF.RasterizerAssembly: TallComponents.PDF.Rasterizer (in TallComponents.PDF.Rasterizer.dll) Version: 3.0.76.0
Syntax
| C# |
|---|
public bool Contains( Layer layer ) |
| Visual Basic |
|---|
Public Function Contains ( _ layer As Layer _ ) As Boolean |
Parameters
- layer
- Type: TallComponents.PDF.Rasterizer..::..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
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | The given layer is nullNothingnullptra null reference (Nothing in Visual Basic). |