The "too long; didn't read" of all of this: What are the formatting options available for displaying text and how do you access them?
For example, I have a CIMPage layout I'm working on that displays a few text blocks, a map, and a photograph. However, because CreateTextGraphicElement only seems to take a lower-left coordinate, I don't seem to have a way of limiting the final height of that text area. Example code is below:
Coordinate2D propDesc_ll = new Coordinate2D(.5, .5);
CIMTextSymbol txtFormat = SymbolFactory.Instance.ConstructTextSymbol(ColorFactory.Instance.BlackRGB, 10, "Arial");
TextElement propDescTxtElm = ElementFactory.Instance.CreateTextGraphicElement(
newLayout,
TextType.PointText,
propDesc_ll.ToMapPoint(),
txtFormat,
propertyData) as TextElement;
However, the propertyData could have a little bit of text, or a lot. When it has a lot, it overlaps a map that is above it, such as the image below:
(Ignore the white lines, just removing some personal data.) Now, once that's produced, I can click on the text area and resize it, but it'd be nice if it would either autosize, or I could calculate the size and resize it before placing (reducing the font size to make it fit, or whatever.)
Really, I guess I'd just like to give it an upper-right coordinate so that I could control the size. The attached file is the code for generating the layout.