Skip to content

Instantly share code, notes, and snippets.

@ciferkey
Created October 13, 2018 23:36
Show Gist options
  • Save ciferkey/94c1018cbd09006f9efc152158e59a9b to your computer and use it in GitHub Desktop.
Save ciferkey/94c1018cbd09006f9efc152158e59a9b to your computer and use it in GitHub Desktop.
fun tryItOut() {
// Also since the block is the only parameter we can even drop the parenthesis all together!
workbook {
// We can directly set the value for isHidden!
isHidden = true
// We cannot change setSelectedTab because Workbook only has a setter for this and no getter (because POI is a PITA).
// This prevents Kotlin from autogenerating the "synthetic accessor"
setSelectedTab(2)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment