前页 后页

对象类型

即使通过Dispatch接口引用,ObjectType枚举也可以标识Enterprise Architect对象类型。例如:

var treeSelectedType = Repository.GetTreeSelectedItemType();

开关(treeSelectedType)

{

案例otElement:

{

//选定元素时的代码

var theElement as EA.Element;

theElement = Repository.GetTreeSelectedObject();

打破;

}

案例otPackage:

{

//选择包时的代码

var thePackage为EA.Package;

thePackage = Repository.GetTreeSelectedObject();

打破;

}

}

有效的枚举值

otAttribute

otAttributeConstraint

otAttributeTag

otAuthor

otClient

otCollection

otConnector

otConnector约束

otConnectorEnd

otConnectorTag

约束

otCustomProperty

otDatatype

图

otDiagramLink

otDiagramObject

努力

otElement

otEventProperties

otEventProperty

otFile

问题

otMailInterface

方法

otMethodConstraint

otMethodTag

otMetric

OT模型

无

包装

otParameter

otParamTag

otPartition

项目

otProject问题

otProjectResource

otProperties

otProperty

otPropertyType

参考

otRepository

要求

otResource

风险

otRoleTag

otScenario

otScenarioExtension

otScenarioStep

刻板印象

斯威曼

otSwimlaneDef

游泳泳道

otTaggedValue

任务

术语

otTest

otTransition