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

Find text at the corner of the margin.

New Here ,
Jun 10, 2024 Jun 10, 2024

Copy link to clipboard

Copied

I want to find the text at the corner of the margin in InDesign using vb.net. I wrote a code to fine the text but it finds everywhere. Kindly give an idea to me to find a solution for this.

 

Dim myColor As InDesign.Color = indesignApplication.ActiveDocument.Colors.Add()
myColor.Model = InDesign.idColorModel.idProcess
myColor.ColorValue = New Object() {0, 100, 100, 0} ' CMYK values for red colormyColor
myColor.Name = "NBWordsHighlightcolor"

Dim searchWord As String = "commonplace"


indesignApplication.FindTextPreferences = InDesign.idNothingEnum.idNothing
indesignApplication.ChangeTextPreferences = InDesign.idNothingEnum.idNothing
indesignApplication.FindTextPreferences.FindWhat = searchWord


Dim foundItems As Object = indesignApplication.ActiveDocument.FindText()


For Each foundItem In foundItems
foundItem.FillColor = myColor
Next

TOPICS
EPUB , Scripting

Views

61

Translate

Translate

Report

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 11, 2024 Jun 11, 2024

Copy link to clipboard

Copied

LATEST

What exactly do you mean by "corner of the margin"? Can you explain via some screenshot?

-Manan

Votes

Translate

Translate

Report

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