Gets or sets a value indicating whether validity checks are performed each time an item is added to the diagram.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
SyntaxC#
Copy Code
|
|---|
public bool ValidityChecks { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property ValidityChecks As Boolean |
true to perform validity checks; otherwise, false. The default is true.
RemarksIf enabled, validity checks are performed each time an item is added to the diagram. This involves enumerating the Items collection and can considerably slow down the process for large diagrams.
You can disable this property to skip the validity checks. However, make sure that you do not add the same item to the diagram more than once and that links are created only between items belonging to the same diagram.
If you disable ValidityChecks to improve performance when populating a diagram with a large number of items, we recommend enabling it again once the diagram has been populated.
See Also