预订演示
前页 后页

ObjectType

The ObjectType enumeration identifies Enterprise Architect object types even when referenced through a Dispatch interface. For example:

     var treeSelectedType = Repository.GetTreeSelectedItemType();

     switch (treeSelectedType)

     {

          case otElement :

          {

               // Code for when an element is selected

               var theElement as EA.Element;

               theElement = Repository.GetTreeSelectedObject();

               break;

          }

          case otPackage :

          {

               // Code for when a Package is selected

               var thePackage as EA.Package;

               thePackage = Repository.GetTreeSelectedObject();

               break;

          }

     }

Valid Enumeration Values

otAttribute

otAttributeConstraint

otAttributeTag

otAuthor

otClient

otCollection

otConnector

otConnectorConstraint

otConnectorEnd

otConnectorTag

otConstraint

otCustomProperty

otDatatype

otDiagram

otDiagramLink

otDiagramObject

otEffort

otElement

otEventProperties

otEventProperty

otFile

otIssue

otMailInterface

otMethod

otMethodConstraint

otMethodTag

otMetric

otModel

otNone

otPackage

otParameter

otParamTag

otPartition

otProject

otProjectIssues

otProjectResource

otProperties

otProperty

otPropertyType

otReference

otRepository

otRequirement

otResource

otRisk

otRoleTag

otScenario

otScenarioExtension

otScenarioStep

otStereotype

otSwimlane

otSwimlaneDef

otSwimlanes

otTaggedValue

otTask

otTerm

otTest

otTransition