预订演示

请注意 : 本帮助页面不适用于最新版本的Enterprise Architect. 最新的帮助文档在这里.

前页 后页

EARules_ClosePartitionName

EARules_ClosePartitionName allows an Add-In that is registered to provide rules for a language to determine if the name for an Activity Partition is displayed with a closing line.
This event occurs during diagram drawing.

Syntax

Function EARules_ClosePartitionName (Repository As EA.Repository, Language As String, Element as EA.Element) As Integer
The EARules_ClosePartitionName function syntax contains these parameters.

Parameter

Description

See also

Repository

EA.Repository
Direction: IN
Description: An EA.Repository object representing the currently-open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
Repository Class

Language

String
Direction: IN
Description: Specifies the language for the rule that Enterprise Architect is requesting. This will match one of the values returned from EARules_Initialize.
EARules_Initialize

Element

EA.Element
Direction: IN
Description: Specifies the element currently being drawn.
Element Class

Return Value


  • Return a positive value to specify that the name should be closed

  • Return zero to specify the name should not be closed

  • Return a negative value to use the behavior from the base rules