How to align a Paragraph centre vertically - libreoffice

I have a small paragraph in a page, which I want to align centre horizontally as well as vertically.
Aligning centre horizontally is quite straightforward, however I am struggling to find a way to centre that Paragraph vertically in the page.
Is there any way, preferably any shortcut to achieve the same?
Your help is highly appreciated.
Many thanks,

You can achieve this by putting the paragraph into a text box (or a frame). Both a text box and a frame can be positioned in the (horizontal or vertical) center of the page (or alternatively of the page's text area).
For a text box: Right-click -> Position and Size -> Position.
For a frame: Properties -> Type -> Position.

Related

Visual-Studio-Code: How to maximise width of code area?

When I toggle panels I get an empty space in my workarea.
Pic is the example. Red area is not used.
Already tried:
Use mouse to move borders.
Togle view/apparance
Solution: F1 > toggle centered layout Found it in github issue https://github.com/Microsoft/vscode/issues/53778
go view->apperance->toggle centered layout.
Happy coding :)

TextMeshPro Text Overlaps Icon

I have my highscore, when it changes it moves to the left, but i need to move it to the right.
How i could achieve that?
Here is problem in imgur picture
I'm using canvas with TextMesPro Text and icon as image
TextMesPro
Put the text and the icon inside a HorizontalLayoutGroup and add a LayoutElement to both. Set the HorizontalLayoutGroup to control child height/width, child force expand width/height. Set the flexible width to the text (in the LayoutElement) to a very high value. Set the preferred size of the image to the size you want the icon to be. You might also want to add a little bit of spacing to the layout group.

Graphview legend position

I can place the legend top, middle, bottom, but its always on the right side of the graphview. How can I place it left side?
The most important problem that "too long" texts doesn't fit in the box, so the end of the text is outside the box / screen. I know I can change the text size, but I don't want to solve the problem in this way.
This solved my problem:
graph.getLegendRenderer().resetStyles();
Just called if I need to resize the legend box.
in the current version it's also possible to freely set the position of legend and also the width

Fix height to smallest possible GTK

I have placed buttons inside a horizontal box inside a window. Now I want this box to be on the top of the window with the smallest possible height. The rest of the window is drawing area for an image display that changes height with the window. How?
I solved it using a table with the following for the first and second row
gtk_table_attach(GTK_TABLE(table),toolbar,0,1,0,1
,GtkAttachOptions((guint)GTK_FILL|(guint)GTK_EXPAND)
,GTK_SHRINK,0,0);
gtk_table_attach(GTK_TABLE(table),test,0,1,1,2
,GtkAttachOptions((guint)GTK_FILL|(guint)GTK_EXPAND)
,GtkAttachOptions((guint)GTK_FILL|(guint)GTK_EXPAND),0,0);

How can I align text inside a GnomeCanvas text item

I would like to have a GnomeCanvas text item and according to its content (and the content language) decide whether to align the text to the right or to the left.
I found one way to do it by changing the anchor property, but using this method would require me to manage the anchor position myself (change it to the right of the text bounding box when aligning to the right), and it seems there must be a simpler way.
EDIT: I see there is also the justification property, which allows me to align the text to the right. However, I still need to set the anchor point according to the language, instead of setting a bounding box that would apply to any language.
Its about a month without another answer. I guess my first understanding was correct and there isn't another way with the canvas. My solution would then be to change the anchor to east and change the anchor point accordingly.