I have to interrelated questions regarding tab stops.
A) There are a number of methods in TWPTextStyle that deal with tab stops, but I can not find a method to determine the number of tabs that have been entered at the start of a given paragraph. Is there a way to determine whether tabs have been placed at the front of a paragraph and if so how many?
b) If I capture the first character of a paragraph that has a single implemented tab stop, it does not display a character, But it also does not appear to be blank. In the following example, evaluating the value copied from the first character location of the paragraph does not display a value, but it also does not evaluate as blank. In the following demo, the first showmessage displays no value, but the second showmessage does not execute
var
tempString1: String;
tempString2: String;
tempString1 := tempParagraph.GetText;
tempString2 := Copy(tempString1, 1, 1);
showmessage(tempIndentString);
if tempIndentString1 = ' ' then
showmessage('Test = True');
From the above, it would appear that the first character location of the paragraph that contains a tab contains some non visual character to represent the tab itself. How can I evaluate that first character location to determine whether it is a tab?
TIA
John