MindFusion.Wpf Pack Programmer's Guide
IProjectViewModel.AddDependency Method
See Also
 





Adds an existing dependency to the project.

Namespace: MindFusion.DataViews.Wpf
Assembly: MindFusion.DataViews.Wpf

 Syntax

C#  Copy Code

public abstract bool AddDependency (
    IDependencyViewModel dependency,
    int index
)

Visual Basic  Copy Code

Public MustOverride Function AddDependency ( _
    dependency As IDependencyViewModel, _
    index As Integer _
) As Boolean

 Parameters

dependency

The dependency to add to the project.

index
The 0-based index of the dependency, or -1, to add the dependency at the end of the list.

 Return Value

true if the operation was successful; otherwise, false.

 Remarks

This method is not subject to undo/redo and should not be invoked directly. If you need to add new dependency to the model, call CreateDependency.

 See Also

IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Wpf Namespace