Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/doc/org.eclipse.papyrus.infra.gmfdiag.common.doc/resource/textAlignment.html')
-rw-r--r--plugins/doc/org.eclipse.papyrus.infra.gmfdiag.common.doc/resource/textAlignment.html4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/doc/org.eclipse.papyrus.infra.gmfdiag.common.doc/resource/textAlignment.html b/plugins/doc/org.eclipse.papyrus.infra.gmfdiag.common.doc/resource/textAlignment.html
deleted file mode 100644
index 8e8613ee1dd..00000000000
--- a/plugins/doc/org.eclipse.papyrus.infra.gmfdiag.common.doc/resource/textAlignment.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Text_Alignment">Text Alignment</h1><h2 id="Introduction">Introduction</h2><p>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. </p><p>Example of text alignment to the right:</p><ul><li>Before a rename of the label</li></ul><p><img border="0" src="images/textAlignment/TextAlignmentBefore.png"/> </p><ul><li>After a rename of the label</li></ul><p><img border="0" src="images/textAlignment/TextAlignmentAfter.png"/></p><p>There is two ways to align text: with the existing button or thanks CSS:</p><h2 id="Apply_text_alignment_with_button">Apply text alignment with button</h2><p>To apply text alignment you can use button. There are available in tree places:</p><ul><li>In the papyrus menu</li></ul><p><img border="0" src="images/textAlignment/TextAlignmentButton01.png"/></p><ul><li>In the toolbar</li></ul><p><img border="0" src="images/textAlignment/TextAlignmentButton02.png"/></p><ul><li>In the contextual menu</li></ul><p><img border="0" src="images/textAlignment/TextAlignmentButton03.png"/></p><h2 id="Apply_text_alignment_with_CSS">Apply text alignment with CSS</h2><p>Text alignment can be defined through the CSS attributes "textAlignment" :</p><p>Example for Label of Port aligned to the right:</p><pre class="source-css">Port &gt; Label {
- textAlignment:"right";
- }
-</pre><p>Note: Text alignment of port's label is forced according to the position of its parent when it is constrained.</p></body></html> \ No newline at end of file

Back to the top