Réserver une Démo

SVP notez : Cette page d’aide n’est pas pour la dernière version d’Enterprise Architect. La dernière aide peut être trouvée ici.

Pré. Proc.

EARules_IsAdjustable

EARules_IsAdjustable allows an Add-In registered to provide rules for a language to specify which elements are sized to the width or height of the diagram.
This event occurs during diagram load and resize events.

Syntax

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

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.

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.

Element

EA.Element
Direction: IN
Description: Specifies the element.

Return Value


  • Return a positive value to allow automatic resize to occur

  • Return zero to prevent automatic resize

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

Learn more