Method SetFrozenInAllViewports
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetFrozenInAllViewports(CadDocument, IEnumerable<string>, bool)
Freezes or thaws layers in every viewport of every layout, as the Layer manager's "VP Freeze Layer in All Viewports" and "VP Thaw Layer in All Viewports".
public static CadEditResult SetFrozenInAllViewports(CadDocument document, IEnumerable<string> layers, bool frozen)
Parameters
documentCadDocumentThe document.
layersIEnumerable<string>The names of the layers.
frozenboolWhether they are to be frozen.
Returns
- CadEditResult
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document or the names are null.