TabStopInfo
TabStopInfo
Section titled “TabStopInfo”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.tabStops
Description
Section titled “Description”Information about the alignment, position, and other details for a tab stop in a ParagraphAttributes object.
Properties
Section titled “Properties”TabStopInfo.alignment
Section titled “TabStopInfo.alignment”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.tabStops.alignment
Description
Section titled “Description”The alignment of the tab stop.
Default: Left
TabStopInfo.decimalCharacter
Section titled “TabStopInfo.decimalCharacter”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.tabStops.decimalCharacter
Description
Section titled “Description”The character used for decimal tab stops.
Default: .
String
TabStopInfo.leader
Section titled “TabStopInfo.leader”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.tabStops.leader
Description
Section titled “Description”The leader dot character.
String
TabStopInfo.position
Section titled “TabStopInfo.position”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.tabStops.position
Description
Section titled “Description”The position of the tab stop expressed in points.
Default: 0.0
Number (double)
TabStopInfo.typename
Section titled “TabStopInfo.typename”app.activeDocument.textFrames[index].paragraphs[index].paragraphAttributes.tabStops.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
Example
Section titled “Example”Displaying tab stop information
Section titled “Displaying tab stop information”// Displays tab stop information found in each text frame// of current document, if any.
var docRef = app.activeDocument;var sData = "Tab Stops Found \\rTabStop Leader\t\tTabStop Position\r";var textRef = docRef.textFrames;
for( var i=0 ; i < textRef.length; i++ ) { // Get all paragraphs in the textFrames var paraRef = textRef[i].paragraphs;
for ( p=0 ; p < paraRef.length ; p++ ) { // Get para attributes for all textRanges in paragraph var attrRef = paraRef[p].paragraphAttributes; var tabRef = attrRef.tabStops;
if ( tabRef.length > 0 ) { for(var t=0; t<tabRef.length; t++){ sData += "\t" + tabRef[t].leader + "\t\t"; sData += "\t\t" + tabRef[t].position + "\r"; } // end for } // end if } // end for} // end for
var newTF = docRef.textFrames.add();newTF.contents = sData;newTF.top = 400;newTF.left = 100; redraw();