I'm writing code for use with Google Docs in Google Apps Script.
I want to select a text and then execute it to get the selected text and perform an operation on the obtained text.
For example, make it bold, but Google Dev has the following description.
But I don't know what class of code this is.
I think it's a Text object to see where the reference is, but as I mentioned earlier, I want to use it for selected text.
I was able to get the selected text, but I couldn't find anything that looked like setBold () on autocomplete.
How can I get the object?
Answer # 1
Isn't this the script you really want to achieve?
- google apps script - i want to create a process like countifs function that can dynamically change the search value in gas
- google apps script - regarding slack app, googleappsscript, cannot read property 'length' of undefined error
- google apps script - get a row in gas and post it to the last row of another sheet
- google apps script - make text easier to see with web scraping
- google apps script - i want to send similar messages to multiple terminals
- google apps script - [gas] how to enable onedit only when a specific cell is edited
- google apps script - please teach how to check stackdriver logging when gas is executed in the web app
- google apps script - post userid to spreadsheet at follow event of line messaging api using gas
- google apps script - how to clear a partial range of multiple sheets with one button
- google apps script - function is not executed when form object is passed in googlescriptrun
- google apps script - when sending the response contents of a google form from a spreadsheet to an email, if you re-edit the form
- google apps script - gas: the acquisition of the last line number displayed in the email notification of the form is duplicated
- google apps script - i want to replace specified strings all at once and output to another sheet
- google apps script - i'd like to be able to automatically notify slack from spsi every day using gas! !
- google apps script - [gas] i want to avoid approval of gas for duplicate spreads
- google apps script - when sending google spreadsheet data by email, the format of date data changes
- google apps script - when using replace () in gas, it is processed destructively even when sandwiching slice ()
- google apps script - i want to copy a regular expression formula with a backslash to the cell below with a relative reference
- google apps script - line bot, continuous sending of messages
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- python 3x - typeerror: 'method' object is not subscriptable
- i want to call a child component method from a parent in vuejs
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- xcode - pod install [!] no `podfile 'found in the project directory