# getCharBoundaries()

**URL:** <https://forum.kirupa.com/t/getcharboundaries/301092>\
**Category:** flash\
**Created:** [December 3, 2009, 12:07pm UTC](https://forum.kirupa.com/t/getcharboundaries/301092 "2009-12-03T12:07:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esseti](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@Esseti](https://forum.kirupa.com/u/Esseti)\
**Post date:** [December 3, 2009, 12:07pm UTC](https://forum.kirupa.com/t/getcharboundaries/301092/1 "2009-12-03T12:07:23Z")

</div>

How to get all of the first character boudaries in each paragraph? To my knowledge, this code shoud work …

```auto

tf.multiline = true;
tf.wordWrap = true;
tf.autoSize = TextFieldAutoSize.LEFT;

var data:Array = ["a", "bb", "ccc", "dddd"];
tf.htmlText = "";
for (var i:uint = 0; i < data.length; i++) {
	if (i < data.length-1) {
		tf.appendText(data*+"
");
	} else {
		tf.appendText(data*);
	};
	trace(tf.getCharBoundaries(tf.getLineOffset(i)));
};

```

But I only get:  
(x=2, y=2, w=6, h=16)  
(x=2, y=20, w=7, h=16)  
null  
null  
Although tf.numLines throws me (3), and just tf.getLineOffset(i) gives:  
(0, 2, 5, 7), so the loop should work …
