{"id":11120,"date":"2018-12-28T07:00:16","date_gmt":"2018-12-27T22:00:16","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=11120"},"modified":"2018-12-28T09:38:26","modified_gmt":"2018-12-28T00:38:26","slug":"office%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3%e6%9e%a0%e7%b7%9a%e7%9b%ae%e7%9b%9b%e7%b7%9a%e3%81%ae%e8%a1%a8%e7%a4%ba%e3%83%bb%e9%9d%9e%e8%a1%a8%e7%a4%ba%e3%82%92%e5%88%87%e3%82%8a%e6%9b%bf%e3%81%88","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=11120","title":{"rendered":"[Office\u30a2\u30c9\u30a4\u30f3]\u67a0\u7dda(\u76ee\u76db\u7dda)\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u3053\u3053\u4e8c\u9031\u9593\u307b\u3069\u4f53\u8abf\u3092\u5d29\u3057\u3066\u3044\u305f\u306e\u3067\u4e45\u3057\u3076\u308a\u306e\u30d6\u30ed\u30b0\u66f4\u65b0\u3067\u3059\u3002<\/p>\n<p>\u4e45\u3057\u3076\u308a\u3067\u89e6\u308a\u305f\u304f\u306a\u308b\u306e\u306f\u3084\u3063\u3071\u308a\u300c<span style=\"color: #ff0000; font-weight: bold;\">Office \u30a2\u30c9\u30a4\u30f3<\/span>\u300d<br \/>\n\u4eca\u56de\u306fExcel\u306eOffice \u30a2\u30c9\u30a4\u30f3\u304b\u3089\u67a0\u7dda(\u76ee\u76db\u7dda)\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">Excel JavaScript API 1.8\u3067\u8ffd\u52a0\u3055\u308c\u305fshowGridlines\u30d7\u30ed\u30d1\u30c6\u30a3<\/h4>\n<p><a href=\"https:\/\/docs.microsoft.com\/ja-jp\/office\/dev\/add-ins\/reference\/requirement-sets\/excel-api-requirement-sets\" title=\"Excel JavaScript API \u306e\u8981\u4ef6\u30bb\u30c3\u30c8Excel JavaScript API requirement sets | Microsoft Docs\" target=\"_blank\">Excel JavaScript API 1.8<\/a>\u3067\u3001Worksheet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u300c<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/javascript\/api\/excel\/excel.worksheet?view=office-js#showgridlines\" title=\"Excel.Worksheet class | Microsoft Docs\" target=\"_blank\">showGridlines<\/a>\u300d\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6587\u5b57\u901a\u308a\u306e\u3053\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306e\u67a0\u7dda(\u76ee\u76db\u7dda)\u306e\u8868\u793a\u72b6\u614b\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4 class=\"style4a\">\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(manifest.xml)<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;OfficeApp xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/appforoffice\/1.1&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:type=&quot;TaskPaneApp&quot;&gt;\r\n  &lt;Id&gt;f1b2bd08-aca3-4ca6-b283-76986c5542ee&lt;\/Id&gt;\r\n  &lt;Version&gt;1.0&lt;\/Version&gt;\r\n  &lt;ProviderName&gt;@kinuasa&lt;\/ProviderName&gt;\r\n  &lt;DefaultLocale&gt;ja-jp&lt;\/DefaultLocale&gt;\r\n  &lt;DisplayName DefaultValue=&quot;\u30c6\u30b9\u30c8\u7528Office \u30a2\u30c9\u30a4\u30f3(1227)&quot; \/&gt;\r\n  &lt;Description DefaultValue=&quot;Office \u30a2\u30c9\u30a4\u30f3\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002&quot;\/&gt;\r\n  &lt;Hosts&gt;\r\n    &lt;Host Name=&quot;Workbook&quot; \/&gt;\r\n  &lt;\/Hosts&gt;\r\n  &lt;DefaultSettings&gt;\r\n    &lt;SourceLocation DefaultValue=&quot;https:\/\/localhost\/apps\/test1227\/index.html&quot; \/&gt;\r\n  &lt;\/DefaultSettings&gt;\r\n  &lt;Permissions&gt;ReadWriteDocument&lt;\/Permissions&gt;\r\n&lt;\/OfficeApp&gt;<\/pre>\n<h4 class=\"style4a\">\u30a2\u30c9\u30a4\u30f3\u672c\u4f53(index.html)<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=&quot;UTF-8&quot; \/&gt;\r\n    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot; \/&gt;\r\n    &lt;title&gt;Sample Office Add-ins&lt;\/title&gt;\r\n    &lt;script src=&quot;https:\/\/ajax.aspnetcdn.com\/ajax\/jQuery\/jquery-3.3.1.min.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script src=&quot;https:\/\/appsforoffice.microsoft.com\/lib\/1\/hosted\/office.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script&gt;\r\n      Office.onReady(function(){\r\n        $(document).ready(function(){\r\n          $(&quot;#btn1&quot;).click(showGridlines);\r\n          $(&quot;#btn2&quot;).click(hideGridlines);\r\n        });\r\n      });\r\n      \r\n      function showGridlines(){\r\n        Excel.run(function(context){\r\n          var sheet = context.workbook.worksheets.getActiveWorksheet();\r\n          sheet.showGridlines = true;\r\n          return context.sync();\r\n        }).catch(function(error){\r\n          console.log(&quot;Error: &quot; + error);\r\n        });\r\n      }\r\n      \r\n      function hideGridlines(){\r\n        Excel.run(function(context){\r\n          var sheet = context.workbook.worksheets.getActiveWorksheet();\r\n          sheet.showGridlines = false;\r\n          return context.sync();\r\n        }).catch(function(error){\r\n          console.log(&quot;Error: &quot; + error);\r\n        });\r\n      }\r\n    &lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;button id=&quot;btn1&quot;&gt;showGridlines&lt;\/button&gt;\r\n    &lt;button id=&quot;btn2&quot;&gt;hideGridlines&lt;\/button&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u4e0b\u8a18\u753b\u9762\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u30fc\u3092\u898b\u308c\u3070\u5206\u304b\u308b\u901a\u308a\u3001\u30ea\u30dc\u30f3\u4e0a\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3068\u306e\u9023\u52d5\u306f\u5b8c\u307a\u304d\u3067\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelJavaScriptAPI_Worksheet_showGridlines_01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/ExcelJavaScriptAPI_Worksheet_showGridlines_01.gif\" alt=\"\" width=\"936\" height=\"433\" class=\"alignnone size-full wp-image-11127\" \/><\/a><\/p>\n<p>\u30a2\u30c9\u30a4\u30f3\u306e\u8a2d\u5b9a\u3084\u30c6\u30b9\u30c8\u65b9\u6cd5\u306f <a href=\"https:\/\/github.com\/kinuasa\/OfficeAddInsHandsOn\" title=\"Global Office 365 Developer Bootcamp:Office Add-ins Hands-on\" target=\"_blank\">https:\/\/github.com\/kinuasa\/OfficeAddInsHandsOn<\/a> \u3067\u516c\u958b\u3057\u3066\u3044\u308b\u30cf\u30f3\u30ba\u30aa\u30f3\u8cc7\u6599\u300c<span style=\"color: #ff0000; font-weight: bold;\">Office \u30a2\u30c9\u30a4\u30f3\u306e\u6982\u8981\u3068\u958b\u767a<\/span>\u300d(OfficeAddInsHandsOnDocument.pdf)\u3092\u3054\u53c2\u7167\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":"\u3053\u3053\u4e8c\u9031\u9593\u307b\u3069\u4f53\u8abf\u3092\u5d29\u3057\u3066\u3044\u305f\u306e\u3067\u4e45\u3057\u3076\u308a\u306e\u30d6\u30ed\u30b0\u66f4\u65b0\u3067\u3059\u3002 \u4e45\u3057\u3076\u308a\u3067\u89e6\u308a\u305f\u304f\u306a\u308b\u306e\u306f\u3084\u3063\u3071\u308a\u300cOffice \u30a2\u30c9\u30a4\u30f3\u300d \u4eca\u56de\u306fExcel\u306eOffice \u30a2\u30c9\u30a4\u30f3\u304b\u3089\u67a0\u7dda(\u76ee\u76db\u7dda)\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057 [&hellip;]","protected":false},"author":1,"featured_media":7119,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Office\u30a2\u30c9\u30a4\u30f3]\u67a0\u7dda(\u76ee\u76db\u7dda)\u306e\u8868\u793a\u30fb\u975e\u8868\u793a\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5]","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":[130,4,48],"tags":[],"class_list":["post-11120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps-for-office","category-office","category-excel-office"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeAddins.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-2Tm","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11120","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=11120"}],"version-history":[{"count":8,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11120\/revisions"}],"predecessor-version":[{"id":11129,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/11120\/revisions\/11129"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7119"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}