Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I get text properties at a TextLoc

Community Expert ,
Jun 05, 2012 Jun 05, 2012

I want to get the text properties of the text location where my cursor is:

var doc = app.ActiveDoc;

var textLoc = doc.TextSelection.beg;

Any pointers would be appreciated.

Rick Quatro

TOPICS
Scripting
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Jun 05, 2012 Jun 05, 2012

Hi Rick,

According to the documentation, the Doc object has a GetTextProps method that expects a TextLoc. Seems to be exactly what you need. Page 477 of the FrameMaker 10 Scripting guide.

Jang

Translate
Advocate ,
Jun 05, 2012 Jun 05, 2012

Hi Rick,

According to the documentation, the Doc object has a GetTextProps method that expects a TextLoc. Seems to be exactly what you need. Page 477 of the FrameMaker 10 Scripting guide.

Jang

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 05, 2012 Jun 05, 2012
LATEST

Hi Jang,

Yes, that's exactly what I needed. I was looking for GetProps and I missed GetTextProps. Thank you very much.

Rick

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines