Change text preferences
Hello
I have a method that changes text in a text block, but I just want to change the first instance it finds. For the moment, it changes all the discoveries.
Is there a feedback in ChangeTextPreference.ButJustTheFirstOneMatey
or equivalent?
Thank you very much
Select this option.
Please ignore the c# and "pretend" it's javascript.
private void ChangeTextFrameText (string Document doc, TextFrame TargetTextFrame, ChangeText, string ChangeTo)
{
Application IndesignApp = doc (Application). Parent;
IndesignApp.FindTextPreferences = idNothingEnum.idNothing;
IndesignApp.ChangeTextPreferences = idNothingEnum.idNothing;
FindTextPreference FTP = (FindTextPreference) IndesignApp.FindTextPreferences;
FTP.FindWhat = ChangeText;
CTP ChangeTextPreference = (ChangeTextPreference) IndesignApp.ChangeTextPreferences;
CTP. ChangeTo = ChangeTo;
FindChangeTextOption FCTO = (FindChangeTextOption) IndesignApp.FindChangeTextOptions;
FCTO. CaseSensitive = false;
FCTO. IncludeFootnotes = false;
FCTO. IncludeHiddenLayers = false;
FCTO. IncludeLockedLayersForFind = false;
FCTO. IncludeLockedStoriesForFind = false;
FCTO. IncludeMasterPages = false;
FCTO. WholeWord = false;
O objects = TargetTextFrame.ParentStory.ChangeText (false);
IndesignApp.FindTextPreferences = idNothingEnum.idNothing;
IndesignApp.ChangeTextPreferences = idNothingEnum.idNothing;
}
I don't think that there is no prefrence as 'ChangeTextPreference.ButJustTheFirstOneMatey '.
In my opinion, you replace your code
O objects = TargetTextFrame.ParentStory.ChangeText (false);
with this
O objects = TargetTextFrame.ParentStory.FindText ();
and you get a list of array in O and O [0] then replace your output.
Shonky
Tags: InDesign
Similar Questions
-
I changed my preferences and now Firefox crashes my computer when I open it-why?
I changed some preferences (including the clear browsing history, cookies, cache, etc. When you exit firefox) and it freezes. When I forst wuit firefox after changing these settings, it took more than 10 minutes (rotation of the wheel) and I finally forced to quit. so when I have opened firefox, everything on my computer before upward. I could not even rule out the window or select 'force quite. ' I had to stop hard. When I rebooted my computer, I opened safari first, then firefox. When firefox open he did the same thing - everything froze, could not move the window, etc. - except this time I clicked on the safari icon and then was able to navigate to a force quite on firefox. How to solve this problem? I hate safari and you want to resume as soon as possible by using firefox. Thank you!
You can use this button to go to the current Firefox profile folder to see where you end up.
- Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)
-
I currently have two accounts in use on my thunderbird. When sending emails on Mozilla Thunderbird, immediate preference is to send from the first account I added to the program, but most of the time, I only want to send emails on the second account. I often forget to change the e-mail address of the sender to the top of the message window that becomes a gene. I don't know there must be a way to change the preferences around, but for the life of me I can't find it anywhere!
If you are viewing emails and folders for the account 'A' and choose to write a new message, and then FROM use e-mail address of account 'A'.
If you were displaying foldres 'B' and email account and choose to write a new message, and then FROM use account address email 'B '.
If you view e-mails in local folders and choose to write a new message, then FROM using anything that is set as default.
At the top e-mail account is the default e-mail account.
You can change which account is set as the default value.
- 'Tools' > 'account settings '.
- Select the e-mail account you want to set as default
- Click on "Actions account."
- Select: "set as default"
- Click OK to save the changes.
The news 'Tools' > 'Account settings' guess you have activated all your toolbars. Otherwise, you can also access the "Account settings" via:
- '3 bar menu icon' > 'Options' > 'account settings '.
or
- Right click on the email account in the left pane of the folder, and then select "settings".
As you have only two e-mail accounts, it is easy to exchange the default and change the order that they are displayed. If later, you add several email accounts and need to change the order of these accounts, not only to define a default value, you can use this addon:
Please note that this addon also lets you reorganize the folders.
-
When I open a new tab, I stay on the current page, even though I have changed my preferences to focus on the new tab.
You have this problem when running in Firefox SafeMode?
http://support.Mozilla.com/en-us/KB/safe+mode
Do not choose anything at the moment, just use 'continue in safe mode.If this is not the case, see this:
http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+theme...You probably have an installed extension that has a conflict with another extension.
-
Add text/text legend - can't change text properties (grayed out)
I use Adobe Acrobat DC (v 15.017.20050).
I tried to insert the text box and the text caption - I had not been able to change the text before, but since last week, I am unable to change text properties in the two commands.
The properties of the area itself still works
Please let me know how to solve this problem. I tried to uninstall and reinstall and it works only the first time, then the problem continues.
Thank you very much
Papon
Hello
We have released an update today which solves the problem of the properties toolbar and now you can continue to use it outside of the app commenting as well. Please open Acrobat or Reader DC and visit help > check for updates to ensure that you are on the latest patch.
Details on the release: https://helpx.adobe.com/acrobat/release-note/acrobat-dc-august-02-2016.html
Please let us know how it goes.
Thank you
-ashu
-
Change search preferences in Acrobat 9 Pro-life do not OK at the bottom of the page?
I want to change the preferences in search and can check their but cannot get to the bottom of the page to click on OK.
Please try to "Repair the facility" under the Help menu if you are using Windows.
Is - this problem only occurs with the option to search or there is a problem with all the option in the preferences?
Please let us know the exact dot of Acrobat 9 Pro and operating system installed on your system version.
Kind regards
Meenakshi
-
I just joined and have acrobat/cloud but can't figure how to change text on my document? Can someone help me?
Hi annc36037142 ,
I would like to point out that after installation of Acrobat Pro DC, open the document & tools 'Edit PDF' option, you can edit PDF files.
Please refer to this article:- https://helpx.adobe.com/acrobat/using/edit-text-pdfs.html
I would like to know if it works.
Kind regards
Christian
-
You want to change the preference of information. where can I find 'Edit menu '?
you want to change the preference of information. where can I find 'Edit menu '?
You must start Acrobat Reader. Look at the menu Edition of the Acrobat Reader software.
-
Does not change the language when I change my preference-applications-Applanguage on creative cloud. No way to get around?
It is important to Swedish to English in the case.
Thank you!Please, try the following steps:
- Uninstall Adobe CC (Creative Cloud help |) Uninstall the creative Office Cloud app)
- Reboot the computer.
- Install the latest Adobe Creative cloud version from the link: CC help | Creative cloud desktop
-
About Adobe Reader DC, I can't find where to change the preferences to not check the updates. Can you tell me how to prevent the automatic updates?
Hi bonnies15119755,
You cannot change the preferences to update for Adobe Acrobat Reader DC Adobe Reader and Acrobat updater settings | DC, XI.
Kind regards
Nicos
-
When I copy something from one page to another, it seems to change text color or background, that I do not understand why he never used to do.
Whether it's text or only a shape it changes its color to something else when I copy and paste on.
Do you mean 'page' or 'site '?
If you copy something from another site, the reason may be, to have different, but all also named colours on each site.
It would be normal and causes the noticed effect.
-
How do I change text in photo portfolio image content?
How do I change text in photo portfolio image content?
If you go to the gallery in the admin... Select an image - you will see a field appears to put/change this text.
-
There is t he not a simple HTML editor allowing to change text and images add privileges or pdf?
At this stage, you can change images and text with in the edition browser, please do not hesitate to add your suggestion in our ideas section.
Thank you
Sanjit
-
I use Windows 8 and cannot determine how to change my preferences of Adobe.
I use Windows 8 and cannot determine how to change my preferences of Adobe.
You will probably need to do a study on how Microsoft Windows 8 to use, especially if you do not have a touch screen.
Two thoughts
1. If you do not have a touch screen, the Adobe Reader Touch may not be the best choice. It is much more limited than the ordinary Adobe Reader. Do you have it chosen for any reason, or any simply because Microsoft has encouraged you in their App Store?
2. try a right click, sometimes seems to substitute for a touch the edge. I know that you can not use the mouse just as if she was tactile.
-
Change the preference open to the bridge open in preview to open in Photoshop
I tried to change the preference open in preview option (Photoshop CS 5) bridge to open in Photoshop without success. When I click the button 'open' to bridge - it shows only one option, that is opened in the preview. I remembered that he was more than just options open in preview. Can someone please help? Thank you very much
Schoi
Maybe you are looking for
-
the FF update section is missing from my newly installed FF14! My OS is Ubuntu.
the section 'Update of FF' is absent from my newly installed FF14! My OS is Ubuntu.
-
Ayuda con el error mshtml.dll
Me can help con este error!
-
My Favorites are gone. I can get back them
Less than a week ago, I got hooked to Verizon FIOS. I installed a wirelss device to connect back modem/router, everything has worked for several days. Then all my favorites have disappeared. My "Favorites" stayed OK
-
Recently, I installed windows 7 new (no upgrade. I install a fresh copy). My previous windows was also windows7. My previous computer was called 'SAHADAT-PC' and username is "SAHADAT. Now, after you install a fresh windows (windows7) my computer name
-
Is the SX20 integrated VNC Viewer such as Edge 95 for content sharing. If so, please indicate the configuration steps.