Skip to main content

Notice: This Wiki is now read only and edits are no longer 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...")
 
(Text Alignement)
Line 1: Line 1:
 
=Text Alignement=
 
=Text Alignement=
 
==Introduction==
 
==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.  
+
Papyrus allows text alignment on external label, that means that when you're editing text, it will be moved on the selected side. You can align text to the left,  to the center or to the right.  
  
 
Example of text alignment to the right:
 
Example of text alignment to the right:
  
Before a rename of the label:
+
#Before a rename of the label:
 
[[File:TextAlignmentBefore.png]]   
 
[[File:TextAlignmentBefore.png]]   
  
After a rename of the label:
+
#After a rename of the label:
 
[[File:TextAlignmentAfter.png]]
 
[[File:TextAlignmentAfter.png]]
  
there is two way to align text: with the existing button or thanks CSS:
+
There is two ways to align text: with the existing button or thanks CSS:
==Apply text alignement with button==
+
==Apply text alignment with button==
To apply text alignment you can use button. There are available in tree place:
+
To apply text alignment you can use button. There are available in tree places:
  
In the papyrus menu:
+
*In the papyrus menu:
 
[[File:TextAlignmentButton01.png]]
 
[[File:TextAlignmentButton01.png]]
  
  
In the toolbar:
+
*In the toolbar:
 
[[File:TextAlignmentButton02.png]]
 
[[File:TextAlignmentButton02.png]]
  
  
In the contextual menu:
+
*In the contextual menu:
 
[[File:TextAlignmentButton03.png]]
 
[[File:TextAlignmentButton03.png]]
  
 
==Apply text alignment with CSS==
 
==Apply text alignment with CSS==
Text alignment can be defined through the CSS attributs "textAlignment" :
+
Text alignment can be defined through the CSS attributes "textAlignment" :
  
Exemple for Label of Port align to the right:
+
Example for Label of Port aligned to the right:
  
 
<nowiki>Port > Label {
 
<nowiki>Port > Label {
 
   textAlignment:"right";
 
   textAlignment:"right";
 
   }</nowiki>
 
   }</nowiki>

Revision as of 05:35, 26 September 2014

Text Alignement

Introduction

Papyrus allows text alignment on external label, that means that when you're editing text, it will be moved on the selected side. You can align text to the left, to the center or to the right.

Example of text alignment to the right:

  1. Before a rename of the label:

TextAlignmentBefore.png

  1. After a rename of the label:

TextAlignmentAfter.png

There is two ways to align text: with the existing button or thanks CSS:

Apply text alignment with button

To apply text alignment you can use button. There are available in tree places:

  • In the papyrus menu:

TextAlignmentButton01.png


  • In the toolbar:

TextAlignmentButton02.png


  • In the contextual menu:

TextAlignmentButton03.png

Apply text alignment with CSS

Text alignment can be defined through the CSS attributes "textAlignment" :

Example for Label of Port aligned to the right:

Port > Label { textAlignment:"right"; }

Back to the top