ModelState Object


Description

ModelState Object.

Methods

Name Description
Activate
Copy Method that creates a copy of the ModelState. The new created ModelState is returned.
CopyComponentSuppressionToVisibility Method that creates a new design view representation based on the suppression of components as defined by this model state. The newly created DesignViewRepresentation is returned.
Delete
GetReferenceKey Generate the sequence of bytes, called this object's reference key, which can be held onto beyond document edits and which will allow the caller to be bound back to the live object.

Properties

Name Description
Application
AttributeSets
BOMDelegate
Document
FactoryDocument
ModelStateType
Name
Parent
SubstituteDocumentDescriptor
SubstituteOccurrence
Type

Accessed From

DesignViewRepresentation.CopyComponentVisibilityToSuppression, ModelState.BOMDelegate, ModelState.Copy, ModelStates.ActiveModelState, ModelStates.Add, ModelStates.AddSubstitute, ModelStates.Item

Samples

Name Description
Create a model state This sample demonstrates creation of a model state in an assembly.
Shrink wrap substitute in assembly The following sample demonstrates the creation of a shrinkwrap substitute within an assembly.

Version

Introduced in version 2022