Interface ILink
Last update: 16.07.2025Namespace: VM.Managed
Assembly: VMAppCore.dll
This interface is to represent the linked object.
public interface ILink
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Properties
FieldHasValue
Gets the status of field.
bool FieldHasValue { get; }
Property Value
LinkedObject
Gets the object container that has a relation with this.
ILinkContainer LinkedObject { get; }
Property Value
ILinkContainer
Owner
Gets the object that has this link.
ILinkContainer Owner { get; }
Property Value
ILinkContainer
Methods
Clear(bool)
Clear the link relation.
The backup flag.void Clear(bool bBackup)
Parameters
bBackup bool
ClearBeforeDeserialize()
Disconnect the link relation before deserialize.
void ClearBeforeDeserialize()
ClearBeforeSwap()
Disconnect the link relation before undo/redo.
void ClearBeforeSwap()
DestroyObject(object, LinkEventArgs)
Destroy this link
void DestroyObject(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The
DisposeLink()
Dispose this link.
void DisposeLink()
GetChilds(HashSet)
void GetChilds(HashSet<ilinkcontainer> lstObjs)
Parameters
lstObjs HashSet
GetFirstDesignEntities()
Get first design entities.
IEnumerable<iobject> GetFirstDesignEntities()
Returns
Reserve(LinkEventArgs)
Reserve link.
bool Reserve(LinkEventArgs args)
Parameters
args LinkEventArgs
The event argument.
Returns
true if succeess to reserve, otherwise false.
SetModified()
set modified link for undo/redo
void SetModified()
Verify(VerifiedResult)
Verify the link.
The verified result.void Verify(VerifiedResult vr)