Click or drag to resize

WpfAnnotationUIFactoryCollectionReplace Method

Replaces an existing factory with a new one. If the oldFactory argument does not exist in the collection, the new factory is added to the end of the collection.

Namespace:  Atalasoft.Annotate.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public void Replace(
	IWpfAnnotationUIFactory oldFactory,
	IWpfAnnotationUIFactory newFactory
)

Parameters

oldFactory
Type: Atalasoft.Annotate.WpfIWpfAnnotationUIFactory
The factory to replace.
newFactory
Type: Atalasoft.Annotate.WpfIWpfAnnotationUIFactory
The new factory that will be inserted into the collection.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if any argument is null (Nothing in VB).
See Also