FindCharacterPos() public method

Return the visual position of the Index-th character of the text, in coordinates relative to the text (note : translation, origin, rotation and scale are not applied)
public FindCharacterPos ( uint index ) : Vector2f
index uint Index of the character
return Vector2f
        public void CutMessageToBoxSize(int length)
        {
            CuttedMessage = new List<string>();
            Text test = new Text(_message, Program.Data.Font, 10);
            int count = 1;
            int lasti = 0;
            for (int i = 0; i < _message.Length; i++)
            {
                int asdf = (int)test.FindCharacterPos((uint)i).X;
                if ((int)test.FindCharacterPos((uint)i).X > length * count)
                {
                    count++;
                    CuttedMessage.Add(_message.Substring(lasti, i - lasti));
                    lasti = i;
                }

                else if (i == _message.Length - 1)
                {
                    CuttedMessage.Add(_message.Substring(lasti, i - lasti + 1));
                }
            }
        }