{"id":11136,"date":"2019-01-08T12:00:21","date_gmt":"2019-01-08T03:00:21","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=11136"},"modified":"2019-01-08T13:38:46","modified_gmt":"2019-01-08T04:38:46","slug":"google-apps-scriptinserttextbox%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%a7%e3%82%b9%e3%83%a9%e3%82%a4%e3%83%89%e3%81%ab%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%83%9c%e3%83%83%e3%82%af%e3%82%b9","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=11136","title":{"rendered":"[Google Apps Script]insertTextBox\u30e1\u30bd\u30c3\u30c9\u3067\u30b9\u30e9\u30a4\u30c9\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u633f\u5165\u3059\u308b"},"content":{"rendered":"<p>\u6628\u5e74\u306e9\u6708\u306b\u30b9\u30e9\u30a4\u30c9\u4e0a\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u633f\u5165\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u304c(\u4e0b\u8a18\u53c2\u7167)\u3001Apps Script\u306e\u66f4\u65b0\u3067\u3088\u308a\u7c21\u5358\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u633f\u5165\u3059\u308b\u305f\u3081\u306e\u300c<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/page#inserttextboxtext\" title=\"Class Page  |  Apps Script  |  Google Developers\" target=\"_blank\">insertTextBox<\/a>\u300d\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u305f\u306e\u3067\u3001\u4eca\u56de\u306f\u305d\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=10866\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Google-120x120.png' alt='[Google Apps Script]Google \u30b9\u30e9\u30a4\u30c9\u3067\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u3001\u6587\u5b57\u88c5\u98fe\u3092\u884c\u3046' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2018.09.10<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=10866\">[Google Apps Script]Google \u30b9\u30e9\u30a4\u30c9\u3067\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u3001\u6587\u5b57\u88c5\u98fe\u3092\u884c\u3046 <\/a><\/div><div class=\"cardlink_excerpt\">\u5148\u65e5\u66f8\u3044\u305f\u8a18\u4e8b\u306b\u7d9a\u3044\u3066\u3001Google Apps Script\u3067Google \u30b9\u30e9\u30a4\u30c9\u3092\u64cd\u4f5c\u3057\u3066\u307f\u307e\u3059\u3002\r\n\r\n\u4eca\u56de\u306f\u3001\u30b9\u30e9\u30a4\u30c9\u4e0a\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\uff06\u8ffd\u52a0\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u306e\u6587\u5b57\u88c5\u98fe\u3092\u884c\u3046\u30b3\u30fc\u30c9\u3067\u3059\u3002Google \u30b9\u30e9\u30a4\u30c9\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<h4 class=\"style4a\">insertTextBox\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u308b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u633f\u5165<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function myFunction1() {\r\n  var page = SlidesApp.getActivePresentation().getSelection().getCurrentPage();\r\n  var shape = page.insertTextBox(&quot;\u3053\u3093\u306b\u3061\u306f\u3001\u4e16\u754c\uff01&quot;, 50, 100, 200, 30);\r\n}<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u9078\u629e\u4e2d\u306e\u30b9\u30e9\u30a4\u30c9\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u304c\u633f\u5165\u3055\u308c\u307e\u3059\u3002<br \/>\n\u308f\u305a\u304b2\u884c\u3001\u975e\u5e38\u306b\u7c21\u5358\u306b\u51e6\u7406\u304c\u66f8\u3051\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_Slides_08_01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_Slides_08_01.gif\" alt=\"\" width=\"757\" height=\"433\" class=\"alignnone size-full wp-image-11137\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/selection#getCurrentPage()\" title=\"Class Selection  |  Apps Script  |  Google Developers\" target=\"_blank\">getCurrentPage<\/a>\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u3063\u3066\u53d6\u5f97\u3057\u305f<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/page\" title=\"Class Page  |  Apps Script  |  Google Developers\" target=\"_blank\">Page<\/a>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089insertTextBox\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3057\u305f\u304c\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306b<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/slide#insertTextBox(String)\" title=\"Class Slide  |  Apps Script  |  Google Developers\" target=\"_blank\">Slide<\/a>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u3082\u540c\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function myFunction2() {\r\n  var slide = SlidesApp.getActivePresentation().getSlides()&#x5B;0];\r\n  var shape = slide.insertTextBox(&quot;\u3053\u3093\u306b\u3061\u306f\u3001\u4e16\u754c\uff01&quot;, 50, 100, 200, 30);\r\n}<\/pre>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_Slides_08_02.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_Slides_08_02.gif\" alt=\"\" width=\"757\" height=\"433\" class=\"alignnone size-full wp-image-11138\" \/><\/a><\/p>\n<p>insertTextBox\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/slides\/shape\" title=\"Class Shape  |  Apps Script  |  Google Developers\" target=\"_blank\">Shape<\/a>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u8fd4\u3063\u3066\u304f\u308b\u306e\u3067\u3001<a href=\"https:\/\/www.ka-net.org\/blog\/?p=10866\" title=\"[Google Apps Script]Google \u30b9\u30e9\u30a4\u30c9\u3067\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u3001\u6587\u5b57\u88c5\u98fe\u3092\u884c\u3046 | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\u4ee5\u524d\u66f8\u3044\u305f\u8a18\u4e8b<\/a>\u306e\u3088\u3046\u306b\u3001\u6587\u5b57\u88c5\u98fe\u3082\u7c21\u5358\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">function myFunction3() {\r\n  var page = SlidesApp.getActivePresentation().getSelection().getCurrentPage();\r\n  var shape = page.insertTextBox(&quot;\u3053\u3093\u306b\u3061\u306f\u3001\u4e16\u754c\uff01&quot;, 50, 100, 200, 30);\r\n  \r\n  \/\/\u6587\u5b57\u88c5\u98fe\r\n  shape.getText().getTextStyle().setBackgroundColor(&quot;#0000ff&quot;)\r\n                                .setForegroundColor(&quot;#ffffff&quot;)\r\n                                .setFontFamily(&quot;M PLUS 1p&quot;);\r\n}<\/pre>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_Slides_08_03.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleAppsScript_Slides_08_03.gif\" alt=\"\" width=\"757\" height=\"433\" class=\"alignnone size-full wp-image-11139\" \/><\/a><\/p>\n<p>Google \u30b9\u30e9\u30a4\u30c9\u3067\u7c21\u5358\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u633f\u5165\u3067\u304d\u308binsertTextBox\u30e1\u30bd\u30c3\u30c9\u3001\u662f\u975e\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"\u6628\u5e74\u306e9\u6708\u306b\u30b9\u30e9\u30a4\u30c9\u4e0a\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u633f\u5165\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u304c(\u4e0b\u8a18\u53c2\u7167)\u3001Apps Script\u306e\u66f4\u65b0\u3067\u3088\u308a\u7c21\u5358\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u633f\u5165\u3059\u308b\u305f\u3081\u306e\u300cinsertTextBox\u300d\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c [&hellip;]","protected":false},"author":1,"featured_media":7113,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Google Apps Script]insertTextBox\u30e1\u30bd\u30c3\u30c9\u3067\u30b9\u30e9\u30a4\u30c9\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3092\u633f\u5165\u3059\u308b]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[126],"tags":[],"class_list":["post-11136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Google.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-2TC","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11136"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11136\/revisions"}],"predecessor-version":[{"id":11140,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11136\/revisions\/11140"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7113"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}