GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoDocument Class / MaintainsPartID Property
In This Topic
    MaintainsPartID Property
    In This Topic
    Gets or sets whether the document should make sure each IGoIdentifiablePart has a unique IGoIdentifiablePart.PartID.
    Syntax
    [Category("Behavior")]
    [DefaultValue(false)]
    [Description("Whether all the IGoIdentifiableParts in this document have a unique PartID")]
    public bool MaintainsPartID {get; set;}
    Remarks

    Setting this property to true will call EnsureUniquePartID. When this property is false, any IGoIdentifiablePart.PartID's are invalid. When this property is true, adding any object to this document will cause every IGoIdentifiablePart whose IGoIdentifiablePart.PartID is -1 to be assigned a unique part ID, a non-negative integer.

    If you add any IGoIdentifiablePart with a non-negative integer to a document, all parts (including parts nested inside groups) must have unique IGoIdentifiablePart.PartIDs already. Since PartIDs are integers, the number of unique part IDs for the lifetime of a document is limited to the number of positive integers.

    See Also