Gets or sets a delegate, which is invoked regularly during the layout process to inform clients about the layout progress.
Namespace: MindFusion.Diagramming.Layout
Assembly: MindFusion.Diagramming.Layout
C# Copy Code |
---|
public virtual LayoutProgress Progress { get; set; } |
Visual Basic Copy Code |
---|
Public Overridable Property Progress As LayoutProgress |
A LayoutProgress delegate method to call while the algorithm proceeds.
It might take a lot of time to arrange large diagrams or run more iterations of the algorithm to get better results. In such situations an application can be notified about the progress of the layout routine by assigning a delegate method to this property. On its turn the application could update the UI to indicate the current progress to the users.
The following example updates a label text to indicate the progress of a layout algorithm. The CreateLayout method instantiates a layout object from a concrete class.
C# Copy Code |
---|
Layout layout = CreateLayout(); |
Visual Basic Copy Code |
---|
Dim layout As Layout = CreateLayout() |