#Eldin Pieter hehim GMT 1 5324
1 messages · Page 1 of 1 (latest)
https://developers.google.com/apps-script/reference/slides/text-style
I'm assuming this, but never used
the actual google app script, so the built-in javascript interpreter.
yeah, that's what i've been reading
from what i'm understanding, i can use setItalic on a TextStyle object.
how do i get a TextStyle object? not sure, but it seems i can use getTextStyle on a TextRange object.
for THAT i have to use .getText on... a TableCell?
but after that, I can't figure it out. is TableCell its own thing? or is it a range object?
i'm super confused with this
Yeah, it's table_cell.getText().getTextStyle()
how do i get a table_cell?
because range.getCell() doesn't seem to do it
Well, from the very top level it's something like
OH
LOL
So first of all
Ignore that link from Eldin because it's pointing at the Slides API
And then from the top it's something like
oh! that was my problem too 😦
SpreadsheetApp.getActiveSpreadsheet().getSheetByName(name).getRange(some_inputs).getTextStyle()
lol I was looking at that and was like "Wow they changed this API a bunch since I was last here"
(I'm responsible for http://bit.ly/BaCON-Sheet, so feel free to ask me more questions about the Sheets API)
lol! ty for realizing it and pointing it out!
that looks WAY intense
so, for sheets api, it is a bit different; there is no setItalic. it looks like it might use some kind of "builder"?
range.setFontStyle
true, but the object is identical
I agree with you (now) 😄
Yeah it's this weird thing where the table embeds in Docs and Slides are two different things, and neither of them is the same as any of the Spreadsheets API (e.g. they don't support conditional formatting)