GoDiagram Web Reference
EnsureUniquePartID Method

Make sure every IGoIdentifiablePart in this document has a unique IGoIdentifiablePart.PartID.
Syntax
'Declaration
 
Public Overridable Sub EnsureUniquePartID() 
public virtual void EnsureUniquePartID()
Remarks
Although this is called automatically when setting MaintainsPartID to true, you may need to call this method explicitly after adding some objects to this document while SuspendsUpdates is true. You may also want to call this method explicitly after loading a document from persistent storage if there is a possibility of any inconsistencies. This method will also make sure that the value of LastPartID is at least as large as any IGoIdentifiablePart.PartID of any IGoIdentifiablePart in this document. If you set any IGoIdentifiablePart.PartID to a non-negative integer before adding the object to the document, you are responsible for making sure that the value is in fact unique within the document.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoDocument Class
GoDocument Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback