<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>.Net開発</anon>
    <anon>C#</anon>
    <anon>Excel</anon>
  </categories>
  <description>(.Net)C#から遅延バインディングでExcelファイルに読み書きするで、C#からExcelへ遅延バインディングを使ったアクセスを書きましたが、今回は列幅、行高さを変更する方法です。 Rangeオブジェクトの ColumnWidth と、RowHeight で指定できるようです。 例えば、A列の幅を20,1行目の高さを30にするには、こんな感じにします。 (シートオブジェクトまでは生成していることとします。） //oSheetはシートオブジェクト object oRange=null; //A列幅調整 oRange = oSheet.GetType().InvokeMember(&quot;Range…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2018%2F03%2F17%2F200000&quot; title=&quot;(.Net)C#からExcelへの遅延バインディングで、列幅を調整する - 3流プログラマのメモ書き&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-17 20:00:00</published>
  <title>(.Net)C#からExcelへの遅延バインディングで、列幅を調整する</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2018/03/17/200000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
