Bagikan melalui


ModelService.CreateItem Method (Object)

When overridden in a derived class, creates a model item that is a deep copy of the specified instance.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Protected MustOverride Function CreateItem ( _
    item As Object _
) As ModelItem
protected abstract ModelItem CreateItem(
    Object item
)
protected:
virtual ModelItem^ CreateItem(
    Object^ item
) abstract
abstract CreateItem : 
        item:Object -> ModelItem 
protected abstract function CreateItem(
    item : Object
) : ModelItem

Parameters

Return Value

Type: Microsoft.Windows.Design.Model.ModelItem
A new model item that is a clone of the existing item.

Exceptions

Exception Condition
ArgumentNullException

item is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ModelService Class

CreateItem Overload

Microsoft.Windows.Design.Services Namespace

ModelItem

Other Resources

Editing Model Architecture

WPF Designer Extensibility