CanWrite

Namespace: Digi21.DigiNG.IO
Assembly: Digi21.DigiNG

Indicates whether entities can be added and deleted in the drawing file.

bool CanWrite { get; }

Property value

bool: false if the file is opened read-only. In Bin, Add and Delete throw InvalidOperationException when CanWrite is false. DrawingFile always returns true.

Check this property before calling Add or Delete in a method taking an IDrawingFile of any format.