Setting text alignment with visio stencil - powershell

I'm in the proccess of creating an automated visio diagram script in powershell, adding elements with text like so.
$GROUP = $CPage.Drop($Stencil_AgentList, $x, $Y)
$GROUP.Text = $MatchedGroup.Name
$GROUP.AutoConnect($QUEUE, 0, $Stencil_Connector)
most of the functionality in terms of layout works at the moment, but i'm having serious troubles with the aspects that actually make diagrams look good.
I think this image explains it best: when you 'Edit Text' on an object, it appears to be aligned to the object in some way, either below or on top of it.
what I would like is to be able to align text, from the object itself, to the right side like below, where 'Example user name' is the ideal output.
I'm assuming this involves shapesheets etc. which I have almost no experience with.
Any help or resources on modifying these stencils so the 'text' area is where I want it to be would be much appreciated.

You should check out this page : https://msdn.microsoft.com/en-us/library/aa200988(v=office.10).aspx
The Text Block of a shape is by default, the same size as the enclosing rectangle of the shape. However, you can modify its size, position, rotation and the horizontal and vertical text alignment

Related

How can I 'trim' a path in Flutter

Let's say I have a container. I want to surround it with a border (or anything that would outline it) and be able to change it's start and end points. This would be similar to the trim paths effect in Adobe After effects. I've looked up options for container borders but the best I could find was to add it to juts one side and that is not the look I want.
The best way I can describe what I want to do is to have a border or outline to the container that looks sort of like a circular progress (but isn't round and takes the shape of the container) that has the start and end points move.
Here is a quick example I made in After Effects of what I am looking for: https://drive.google.com/file/d/1DgHZbLv_TX1D_lpfYJlL4QA0kOVbQZDe/view?usp=sharing
This needs to be done through CustomPainters. Here is a repo I came across which does this through custom painters https://github.com/divyanshub024/flutter_path_animation.

Trying to reduce the size of boxes on screen

I am trying to setup a style based on bootstrap3.
Basically I want to try and reduce the size of the input elements which I have done, getting a decent proportion of 'box' vs 'text'.
However if I use the same font-size in a select box with the same size then I get a situation where the text is masked along the bottom edge...
I think there is a tiny bit more margin at the top of the select box, but for the life of me I cant find where that is set in BootStrap to change it (if at all).
I think all I need to do is move the text in the 'select' element up by a couple of pixels and it will align with those bits of text in standard text boxes....
Can anyone point me in the right direct please?
Found the associated CSS in the bootstrap, with a bit of trial and error....
Mainly in the 'form-control' section.
but now also using Bootstrap 4, with a couple of additional styles.

Enterprise Architect: Control Position or Margin of Element Title

Is there a way to configure the margin or position of an element's title in Enterprise Architect?
For example, can I move the word "Foobar" closer to the top of this packaging component to save some space?
I also noticed that some elements seem to have a minimum size even when they are empty. For example, here Component1 cannot be smaller than whats shown in the picture, while the packaging component can made much smaller.
No, you cannot configure that for the standard EA elements.
The only way to influence something like that would be to write your own shapescript, link that to a stereotype and apply the stereotype to the element.
But that would probably be a bit too much if you only want to change the position of the name field.

stretch underbrace vertically word

use Microsoft Word to edit an equation with underbrace. The line is as follows:
\underbrace(ab+cdf-edf=9dc/ereat+asdfdgg-asfeefe-eafdgahty+atataeaattrat)
The problem is the symbol for underbrace is very flat, looking like a line with the downward pointing part too small to see. Is there a way to make it larger (e.g., is there a way to stretch the underbrace VERTICALLY)? The size of underbrace is set automatically in Latex and looks fine. But in Microsoft Word, the default just does not look especially when you have a long equation. I am not sure if there is a setting allowing you to change it. Many thanks! Gene

Word Styles to get two elements to share same background/border

Within MS Word 2013 I am trying to create a text element plus a list underneath it, all wrapped inside a coloured border with background shading (see image). The attached image shows the text in plain form.
I would like to place a blue border around both the title and the list. I can achieve this by placing both objects within a 1x1 table and applying colouring rules to the cell, but semantically this seems bad (I'm from an HTML development background where it is very wrong!)
When I edit a Style rule to create the border/background, it works well until I create the list, then it goes badly wrong. Is it possible to achieve the output of the table cell approach by only using a style rule and no table?
After a day of experimentation, the closest I can get is by doing the following:
Create a style rule called Tips Heading based on Normal, then set it to be Bold with a blue background.
Create another style rule called Tips List based on List Paragraph, and set it to have a blue background.
Unfortunately the List cannot be indented because the background colour also indents. The border is also affected in this manner, so I ignored the border and indentation. It works really well and is semantically well structured.