预订演示

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

前页 后页

EARules_GetCompartmentItem

EARules_GetCompartmentName allows an Add-In registered to provide rules for a language to override the text displayed for individual items in a compartment.
This event occurs during diagram drawing.

Syntax

Function EARules_GetCompartmentItem (Repository As EA.Repository, Language As String, Element as EA.Element, Compartment as String, Item as String, Base as Integer) As String
The EARules_GetCompartmentItem 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

Compartment

String
Direction: IN
Description: Specifies the compartment being rendered.

Item

String
Direction: IN
Description: Specifies the item being rendered.

Base

Integer
Direction: OUT
Description: Controls whether the base rules will be called if you return an empty value. A non-zero value and return of an empty string means that the parent rules will determine the display of the compartment item.

Return Value

A string defining the text to be displayed for this compartment item.