Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Papyrus/Papyrus User Guide/Toolbars/TextAlignment"

(Created page with "=Text Alignement= ==Introduction== Papyrus allow text alignment on external label, that means that when you're editing text it will be move on the selected side. You can align...")
 
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=Text Alignement=
+
[https://help.eclipse.org/2020-09/topic/org.eclipse.papyrus.infra.gmfdiag.common.doc/target/generated-eclipse-help/textAlignment.html?cp=73_0_2_9_2 Text Alignment (2020-09)]
==Introduction==
+
Papyrus allow text alignment on external label, that means that when you're editing text it will be move on the selected side. You can align text to the left,  to the centre or to the right.  
+
  
Example of text alignment to the right:
+
[[Category:Papyrus]]
 
+
Before a rename of the label:
+
[[File:TextAlignmentBefore.png]]
+
 
+
After a rename of the label:
+
[[File:TextAlignmentAfter.png]]
+
 
+
there is two way to align text: with the existing button or thanks CSS:
+
==Apply text alignement with button==
+
To apply text alignment you can use button. There are available in tree place:
+
 
+
In the papyrus menu:
+
[[File:TextAlignmentButton01.png]]
+
 
+
 
+
In the toolbar:
+
[[File:TextAlignmentButton02.png]]
+
 
+
 
+
In the contextual menu:
+
[[File:TextAlignmentButton03.png]]
+
 
+
==Apply text alignment with CSS==
+
Text alignment can be defined through the CSS attributs "textAlignment" :
+
 
+
Exemple for Label of Port align to the right:
+
 
+
<nowiki>Port > Label {
+
  textAlignment:"right";
+
  }</nowiki>
+

Latest revision as of 11:20, 26 November 2020

Text Alignment (2020-09)

Back to the top