Class InstanceContainer
Last update: 16.07.2025Namespace: VM.Managed
Assembly: VMObjBase.dll
This base class is to represent the instance container.
[CanNotOpenWithNewPreprocessor]
public abstract class InstanceContainer : SubEntity, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IReferencable, ITransformable, IVisible, IAssemblyOwner, IInterfaceTable, IGroup, IMultiChangable, IInstanceContainer, IEntityRelation
Inheritance
object ← ObservableObject ← LinkableBase ← ObjectBase ← Object<ObjectEventCore> ← SubEntity ← InstanceContainer
Implements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, ISubEntity, IEntityBase, IObjectBase, IObject, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, INamed, INavigatorItem, IContainer, ILinkContainer, IOwned, IHasID, IDocumentOwner, IReferencable, ITransformable, IVisible, IAssemblyOwner, IInterfaceTable, IGroup, IMultiChangable, IInstanceContainer, IEntityRelation
Inherited Members
SubEntity.Initialize(Unit.ConvertFactor), SubEntity.GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool), SubEntity.FixUp(ObjectBase), SubEntity.WriteTemplateImpl(XmlWriter), SubEntity.ReadTemplateImpl(XmlReader), SubEntity.Name, SubEntity.FullName, SubEntity.NonSymmetricName, SubEntity.DisplayName, SubEntity.IsEnabled, SubEntity.Comment, Object<ObjectEventCore>.GetKey(), Object<ObjectEventCore>.Initialize(Unit.ConvertFactor), Object<ObjectEventCore>.SetIconColor(Canvas), Object<ObjectEventCore>.OnDeserialization(object), Object<ObjectEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext), Object<ObjectEventCore>.RollbackEvent(), Object<ObjectEventCore>.OnDeserializedCore(object), Object<ObjectEventCore>.Key, Object<ObjectEventCore>.UntypedEventCore, Object<ObjectEventCore>.EventCore, Object<ObjectEventCore>.Attributes, ObjectBase.ReplaceEventCore(ObjectEventCore), ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType), ObjectBase.AddPostDeserialize(StreamingContext), ObjectBase.LinkAddedToDocumentCore(IOwned, bool), ObjectBase.SetModified(ModifiedResult.ModifiedType), ObjectBase.SetModified(), ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument), ObjectBase.DestroyObject(object, LinkEventArgs), ObjectBase.DestroyObject(DestroyEventArgs), ObjectBase.DestroyObject(), ObjectBase.Initialize(Unit.ConvertFactor), ObjectBase.FixUp(ObjectBase), ObjectBase.DoWorkAfterUpdateContents(), ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase), ObjectBase.SetIconColor(Canvas), ObjectBase.RemoveFromCreatedList(), ObjectBase.PostAddToDocument(), ObjectBase.PostRemoveFromDocument(Document), ObjectBase.GetArgumentList(LinkedList<ObjectBase>), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet<ObjectBase>), ObjectBase.Verify(VerifiedResult), ObjectBase.ConnectProxy(), ObjectBase.RollbackEvent(), ObjectBase.LinkRequestUpdating(object, LinkEventArgs), ObjectBase.LinkRequestUpdate(object, LinkEventArgs), ObjectBase.LinkRequestDestroying(object, LinkEventArgs), ObjectBase.LinkRequestDestroy(object, LinkEventArgs), ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs), ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), ObjectBase.DisposeManagedResources(), ObjectBase.GetDestroyEventExtraData(), ObjectBase.OnLinkReserved(ILink, object, EventArgs), ObjectBase.CreateEntityWhenUpdateContents(Action), ObjectBase.GetObjectByKey(UIntPtr), ObjectBase.FindObjectOnXmlDeserialize(string), ObjectBase.UpdateContents(XmlReader, ObjectBase, string), ObjectBase.UpdateContents(XmlReader, ObjectBase), ObjectBase.UpdateContents(string, string), ObjectBase.UpdateContents(string), ObjectBase.SetFlagWhenXMLFile(string, bool), ObjectBase.IsEqualArray<T>(T[], T[]), ObjectBase.IsEqualList(List<double>, List<double>), ObjectBase.SetContainer(IOwned, bool), ObjectBase.GetTargetListForUpdate(), ObjectBase.SkipUpdateObjectImpl(), ObjectBase.raise_OnUpdating(object, LinkEventArgs), ObjectBase.raise_OnUpdate(object, LinkEventArgs), ObjectBase.raise_OnDestroying(object, LinkEventArgs), ObjectBase.raise_OnDestroy(object, LinkEventArgs), ObjectBase.raise_Destroying(object, Identifier), ObjectBase.raise_OnAdded(object, AddToDocEventArgs), ObjectBase.raise_OnRemoved(object, RemoveFromDocEventArgs), ObjectBase.raise_OnContentsUpdated(object, EventArgs), ObjectBase.Dispose(bool), ObjectBase.SkipModified, ObjectBase.ClearChildInfoBeforeDeserialize, ObjectBase.KeyImpl, ObjectBase.ID, ObjectBase.TopologyEntityTypeName, ObjectBase.ObjectStateForCircularError, ObjectBase.ObjectState, ObjectBase.IsChildExternable, ObjectBase.IsExternable, ObjectBase.Container, ObjectBase.Owner, ObjectBase.Document, ObjectBase.UntypedEventCore, ObjectBase.KernelKey, ObjectBase.Key, ObjectBase.OnContentsUpdated, ObjectBase.OnRemoved, ObjectBase.OnAdded, ObjectBase.Destroying, ObjectBase.OnDestroy, ObjectBase.OnDestroying, ObjectBase.OnUpdate, ObjectBase.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
InstanceContainer()
Initializes a new instance of the
public InstanceContainer()
InstanceContainer(string, Instance)
Initializes a new instance of the
public InstanceContainer(string strName, Instance instance)
Parameters
strName string
Name of the instance container.
instance Instance
The instance.
InstanceContainer(string, string, TransformBase)
Initializes a new instance of the
public InstanceContainer(string strName, string strDocumentFilePath, TransformBase transf)
Parameters
strName string
Name of the instance container.
strDocumentFilePath string
The document file path.
transf TransformBase
The transformation matrix.
Properties
Instance
Gets or sets the instance.
public Instance Instance { get; set; }
Property Value
Instance
InterfaceTableList
Gets the interface table list.
protected IList<InstanceContainer.InterfaceTable> InterfaceTableList { get; }
Property Value
IList<InstanceContainer.InterfaceTable>
InterfaceTables
Gets or sets the interface tables.
public InstanceContainer.InterfaceTable[] InterfaceTables { get; set; }
Property Value
InstanceContainer.InterfaceTable[]
IsVisible
Gets or sets the visible state.
public virtual bool IsVisible { get; set; }
Property Value
Layer
Gets or sets the layer.
public Layer Layer { get; set; }
Property Value
Layer
Methods
BindInterface()
Binds the interface.
public void BindInterface()
BindInterface(ObjectBase, ObjectBase)
Binds the interface.
protected virtual bool BindInterface(ObjectBase obFrom, ObjectBase obTo)
Parameters
obFrom ObjectBase
The [from object].
obTo ObjectBase
The [to object].
Returns
true if success; otherwise, false.
BindInterface(InterfaceTable)
Binds the interface.
protected void BindInterface(InstanceContainer.InterfaceTable table)
Parameters
table InstanceContainer.InterfaceTable
The interface table.
Find(string)
Finds an object that matches a specified name
public IObjectBase Find(string strName)
Parameters
strName string
Name to search for.
Returns
IObjectBase
An object that matches a specified name.
FindLocal(string)
Finds an object that matches a specified name in local.
public virtual IObjectBase FindLocal(string strName)
Parameters
strName string
Name to search for.
Returns
IObjectBase
An object that matches a specified name.
GetChildListImpl()
Gets the child list.
protected virtual IEnumerable<ObjectBase> GetChildListImpl()
Returns
IEnumerable<ObjectBase>
The child list.
GetLayerImpl()
Gets the layer [implementation].
protected virtual Layer GetLayerImpl()
Returns
Layer
The layer
GetNewEntityName(string)
Gets the new name of the entity [Not Implemented].
public virtual string GetNewEntityName(string strPrefix)
Parameters
strPrefix string
The prefix.
Returns
The new name
GetNewEntityName(string, bool, int)
Generate an unique DAFUL object name from the container using the prefix name.
public string GetNewEntityName(string strPrefix, bool bUseUnderLine, int nNumFigure)
Parameters
strPrefix string
The DAFUL object prefix name.
bUseUnderLine bool
Whether use underline.
nNumFigure int
The Number of Figure.
Returns
The DAFUL object name.
GetNewEntityName(string, bool, int, int)
Generate an unique DAFUL object name from the container using the prefix name.
public string GetNewEntityName(string strPrefix, bool bUseUnderLine, int nNumFigure, int nStartIndex)
Parameters
strPrefix string
The DAFUL object prefix name.
bUseUnderLine bool
Whether use underline.
nNumFigure int
The Number of Figure.
nStartIndex int
The start index.
Returns
The DAFUL object name.
GetTargetListForUpdate()
Gets the update objects.
public override List<IEventProvider> GetTargetListForUpdate()
Returns
List<IEventProvider>
GetUnnamedObjectName(object)
Gets the name of the unnamed object.
public virtual string GetUnnamedObjectName(object obUnnamed)
Parameters
obUnnamed object
The unnamed object.
Returns
The unnamed object name.
InitInterfaceTable()
Initialize the interface table.
public virtual void InitInterfaceTable()
IsDestroyContainer()
Determines whether is [destroy container].
public virtual bool IsDestroyContainer()
Returns
true if is [destroy container]; otherwise, false.
LinkRequestDestroy(object, LinkEventArgs)
Request for destroy the linked object.
protected override void LinkRequestDestroy(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The
LinkRequestUpdate(object, LinkEventArgs)
Request for update the linked object.
protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The
MakeReferenceImpl(LinkedList<Reference>)
Makes the reference [implementation].
protected virtual void MakeReferenceImpl(LinkedList<Reference> lstRef)
Parameters
lstRef LinkedList<Reference>
The container.
OnDeserialization(object)
Called when [deserialization].
protected override void OnDeserialization(object sender)
Parameters
sender object
The sender.
PostAddToDocument()
Call when post [add to document].
public override void PostAddToDocument()
PostOpenDocumentAfterHookEvent()
Call when post [open document].
public virtual void PostOpenDocumentAfterHookEvent()
ProcessDuplicateReferenceImpl(Reference)
Process for duplicated reference
protected virtual void ProcessDuplicateReferenceImpl(Reference refer)
Parameters
refer Reference
The reference.
Redraw()
Redraw.
public virtual void Redraw()
SetLayerImpl(Layer)
Sets the layer [implementation].
protected virtual void SetLayerImpl(Layer layer)
Parameters
layer Layer
The layer.
TransformImpl(TMatrix)
Transforms [implementation].
protected virtual void TransformImpl(TMatrix matT)
Parameters
matT TMatrix
The mat T.