Robert Brodt Messages: 802 Registered: August 2010 Location: Colorado Springs, CO
My application uses a MultiText as a child of a rectangle container shape. The desired behavior is to have the container shape resize automatically as the MultiText is extended beyond the bounds of the container (i.e. as the user is editing the text for the MultiText in a property view.) To do that, I need to know the bounds of the MultiText to determine if it exceeds the bounds of the container shape. Is there a way to calculate the MultiText bounds?
For now we only have a method in stock that can calculate text sizes without taking line breaks/new lines into account. See IUIService.calculateTextSize. As a workaround you might try to call Draw2D's method we also use directly: