ModelService ModelService ModelService ModelService Class

Definition

This class is the main entry point that the designer uses to interact with the model.

public ref class ModelService abstract
public abstract class ModelService
type ModelService = class
Public MustInherit Class ModelService
Inheritance
ModelServiceModelServiceModelServiceModelService

Remarks

The service has a split between public and protected methods that you must implement when you create a derived class. The public methods are callable by anyone. The protected methods are invoked by the model.

Constructors

ModelService() ModelService() ModelService() ModelService()

Creates a new ModelService.

Properties

Root Root Root Root

The root of the object hierarchy.

Methods

CreateItem(Object) CreateItem(Object) CreateItem(Object) CreateItem(Object)

Takes an existing instance and creates a model item that is a deep clone of the instance.

CreateItem(Type, CreateOptions, Object[]) CreateItem(Type, CreateOptions, Object[]) CreateItem(Type, CreateOptions, Object[]) CreateItem(Type, CreateOptions, Object[])

Creates a ModelItem for a given type. This method is called by ModelFactory when the user wants to create a new item.

CreateStaticMemberItem(Type, String) CreateStaticMemberItem(Type, String) CreateStaticMemberItem(Type, String) CreateStaticMemberItem(Type, String)

Creates a new model item that represents the value of a static member of the given class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Find(ModelItem, Predicate<Type>) Find(ModelItem, Predicate<Type>) Find(ModelItem, Predicate<Type>) Find(ModelItem, Predicate<Type>)

Finds matching model items given a starting point from which to look.

Find(ModelItem, Type) Find(ModelItem, Type) Find(ModelItem, Type) Find(ModelItem, Type)

Finds matching model items given a starting point from which to look.

FromName(ModelItem, String) FromName(ModelItem, String) FromName(ModelItem, String) FromName(ModelItem, String)

Locates the ModelItem in the given scope with the given name.

FromName(ModelItem, String, StringComparison) FromName(ModelItem, String, StringComparison) FromName(ModelItem, String, StringComparison) FromName(ModelItem, String, StringComparison)

Locates the ModelItem in the given scope with the given name.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

ModelChanged ModelChanged ModelChanged ModelChanged

This event is raised when something in the model has changed.

Applies to