Class ControlDocument
Last update: 16.07.2025Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the control document.
public class ControlDocument : Document, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IEnableManager, IRelatedDocument, IHistorySupport, IControlDocument
Inheritance
object ← ObservableObject ← LinkableBase ← LinkContainer ← Container ← Document ← ControlDocument
Implements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IDocument, IObject, IEventProvider, IContainer, ILinkContainer, IOwned, IHasID, IEnableManager, IRelatedDocument, IHistorySupport, IControlDocument
Inherited Members
Document.g_OpenDocuments,
Document.m_unit,
Document.m_unitKernal,
Document.raise_OnChildAdded(object, DocumentEventArgs),
Document.raise_OnChildRemoved(object, DocumentEventArgs),
Document.raise_OnChildRenamed(object, DocumentEventArgs),
Document.raise_OnChildUpdated(object, DocumentEventArgs),
Document.raise_OnChildUpdatedEnable(object, DocumentEventArgs),
Document.raise_OnChildUpdatedAll(object, DocumentEventArgs),
Document.raise_OnChildDocNameUpdated(object, DocumentEventArgs),
Document.raise_OnDependentDocumentAdded(object, DependentDocEventArgs),
Document.raise_OnDependentDocumentRemoved(object, DependentDocEventArgs),
Document.raise_OnClearSelectNavigator(object, DocumentEventArgs),
Document.raise_OnChildRootSelect(object, DocumentEventArgs),
Document.raise_OnChangeIconForNodalModal(object, DocumentEventArgs),
Document.raise_OnDoingImport(object, DocumentEventArgs),
Document.raise_OnSkipChildAdded(object, DocumentEventArgs),
Document.raise_OnSimulationCaseUpdated(object, EventArgs),
Document.raise_OnSubentityRefreshed(object, EventArgs),
Document.raise_OnSubentityAdded(object, DocumentEventArgs),
Document.raise_OnChildMultiAdded(object, DocumentEventArgs),
Document.raise_OnSingleObjectSelected(object, ObjectBaseEventArgs),
Document.raise_Destroying(object, EventArgs),
Document.raise_ChildAdded(object, Identifier),
Document.raise_ChildRemoved(object, Identifier),
Document.raise_ChildReplacing(object, Identifier),
Document.raise_ChildReplaced(object, Identifier),
Document.raise_SelectionChanged(object, IEnumerable
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
ControlDocument()
public ControlDocument()
Properties
CanClose
Gets a value indicating that whether document can close.
public override bool CanClose { get; }
Property Value
IsPropertySupport
public virtual bool IsPropertySupport { get; }
Property Value
IsReload
public virtual bool IsReload { get; }
Property Value
Modified
Gets or sets the document's modify state.
public override bool Modified { get; set; }
Property Value
Methods
Add(ObjectBase)
Add object to document.
public override sealed void Add(ObjectBase A_0)
Parameters
A_0 ObjectBase
CreateView(UIntPtr)
Create view.
public override View CreateView(UIntPtr hWnd)
Parameters
hWnd UIntPtr
The view handle.
Returns
FindLocal(string)
Find DAFUL object from the container by name.
public override IObjectBase FindLocal(string A_0)
Parameters
A_0 string
Returns
IObjectBase
The DAFUL object.
IsEnabledImpl(ObjectBase)
Determines whether is enabled [the specified object] [implementation].
public override bool IsEnabledImpl(ObjectBase A_0)
Parameters
A_0 ObjectBase
Returns
true if is enabled [the specified object]; otherwise, false.
IsTypeSupported(Type)
Determines whether is [supported type] [the specified type].
public override void IsTypeSupported(Type A_0)
Parameters
A_0 Type
Load(string)
public virtual void Load(string strPath)
Parameters
strPath string
OnPostMakeDocument(DocCreateInfo)
Called when [post make document] [implementation].
protected override void OnPostMakeDocument(DocCreateInfo info)
Parameters
info DocCreateInfo
Save(string)
Save document.
public override void Save(string strPath)
Parameters
strPath string
The path to save.
SetEnableImpl(ObjectBase, bool)
Sets the enable [implementation].
public override void SetEnableImpl(ObjectBase A_0, bool A_1)
Parameters
A_0 ObjectBase
A_1 bool
SetUnit(Unit)
Sets the document unit.
protected override void SetUnit(Unit A_0)
Parameters
A_0 Unit
TriggerPostMakeDocument(ControlDocCreateInfo)
public void TriggerPostMakeDocument(ControlDocCreateInfo info)
Parameters
info ControlDocCreateInfo
UpdateEnable(ObjectBase, bool)
Update object to enable or disable.
public override void UpdateEnable(ObjectBase A_0, bool A_1)
Parameters
A_0 ObjectBase
A_1 bool