[{"data":1,"prerenderedAt":803},["ShallowReactive",2],{"content-query-yOjF3sw6NQ":3,"navigation":455},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":7,"date":9,"body":10,"_type":448,"_id":449,"_source":450,"_file":451,"_stem":452,"_extension":453,"sitemap":454},"/document/cell-types/cells-type-for-entire-column","cell-types",false,"","列全体のセルタイプ","2014-06-04",{"type":11,"children":12,"toc":444},"root",[13,21,27,285,296,383,393,398,408,418,428,438],{"type":14,"tag":15,"props":16,"children":18},"element","h2",{"id":17},"プログラムで列のセルタイプを設定",[19],{"type":20,"value":17},"text",{"type":14,"tag":22,"props":23,"children":24},"p",{},[25],{"type":20,"value":26},"列全体にセルタイプを指定するには:",{"type":14,"tag":28,"props":29,"children":33},"pre",{"className":30,"code":31,"language":32,"meta":7,"style":7},"language-cs shiki shiki-themes github-light github-dark github-light","var header = worksheet.ColumnHeaders[\"A\"];\n\n// ColumnHeaders property returns an instance of a column header.\n// It accepts a numeric index or an address string to locate a column.\nheader.DefaultCellBody = typeof(unvell.ReoGrid.CellTypes.CheckBoxCell);\n\n// Set horizontal alignment for all cells in this column to center\nheader.Style.HorizontalAlign = ReoGridHorAlign.Center;\n\n// Give the check box a small padding (2 pixels)\nheader.Style.Padding = new System.Windows.Forms.Padding(2);\n","cs",[34],{"type":14,"tag":35,"props":36,"children":37},"code",{"__ignoreMap":7},[38,78,88,98,107,169,177,186,204,212,221],{"type":14,"tag":39,"props":40,"children":43},"span",{"class":41,"line":42},"line",1,[44,50,56,61,67,73],{"type":14,"tag":39,"props":45,"children":47},{"style":46},"--shiki-light:#D73A49;--shiki-dark:#F97583;--shiki-default:#D73A49",[48],{"type":20,"value":49},"var",{"type":14,"tag":39,"props":51,"children":53},{"style":52},"--shiki-light:#6F42C1;--shiki-dark:#B392F0;--shiki-default:#6F42C1",[54],{"type":20,"value":55}," header",{"type":14,"tag":39,"props":57,"children":58},{"style":46},[59],{"type":20,"value":60}," =",{"type":14,"tag":39,"props":62,"children":64},{"style":63},"--shiki-light:#24292E;--shiki-dark:#E1E4E8;--shiki-default:#24292E",[65],{"type":20,"value":66}," worksheet.ColumnHeaders[",{"type":14,"tag":39,"props":68,"children":70},{"style":69},"--shiki-light:#032F62;--shiki-dark:#9ECBFF;--shiki-default:#032F62",[71],{"type":20,"value":72},"\"A\"",{"type":14,"tag":39,"props":74,"children":75},{"style":63},[76],{"type":20,"value":77},"];\n",{"type":14,"tag":39,"props":79,"children":81},{"class":41,"line":80},2,[82],{"type":14,"tag":39,"props":83,"children":85},{"emptyLinePlaceholder":84},true,[86],{"type":20,"value":87},"\n",{"type":14,"tag":39,"props":89,"children":91},{"class":41,"line":90},3,[92],{"type":14,"tag":39,"props":93,"children":95},{"style":94},"--shiki-light:#6A737D;--shiki-dark:#6A737D;--shiki-default:#6A737D",[96],{"type":20,"value":97},"// ColumnHeaders property returns an instance of a column header.\n",{"type":14,"tag":39,"props":99,"children":101},{"class":41,"line":100},4,[102],{"type":14,"tag":39,"props":103,"children":104},{"style":94},[105],{"type":20,"value":106},"// It accepts a numeric index or an address string to locate a column.\n",{"type":14,"tag":39,"props":108,"children":110},{"class":41,"line":109},5,[111,116,121,126,131,136,141,146,150,155,159,164],{"type":14,"tag":39,"props":112,"children":113},{"style":63},[114],{"type":20,"value":115},"header.DefaultCellBody ",{"type":14,"tag":39,"props":117,"children":118},{"style":46},[119],{"type":20,"value":120},"=",{"type":14,"tag":39,"props":122,"children":123},{"style":46},[124],{"type":20,"value":125}," typeof",{"type":14,"tag":39,"props":127,"children":128},{"style":63},[129],{"type":20,"value":130},"(",{"type":14,"tag":39,"props":132,"children":133},{"style":52},[134],{"type":20,"value":135},"unvell",{"type":14,"tag":39,"props":137,"children":138},{"style":63},[139],{"type":20,"value":140},".",{"type":14,"tag":39,"props":142,"children":143},{"style":52},[144],{"type":20,"value":145},"ReoGrid",{"type":14,"tag":39,"props":147,"children":148},{"style":63},[149],{"type":20,"value":140},{"type":14,"tag":39,"props":151,"children":152},{"style":52},[153],{"type":20,"value":154},"CellTypes",{"type":14,"tag":39,"props":156,"children":157},{"style":63},[158],{"type":20,"value":140},{"type":14,"tag":39,"props":160,"children":161},{"style":52},[162],{"type":20,"value":163},"CheckBoxCell",{"type":14,"tag":39,"props":165,"children":166},{"style":63},[167],{"type":20,"value":168},");\n",{"type":14,"tag":39,"props":170,"children":172},{"class":41,"line":171},6,[173],{"type":14,"tag":39,"props":174,"children":175},{"emptyLinePlaceholder":84},[176],{"type":20,"value":87},{"type":14,"tag":39,"props":178,"children":180},{"class":41,"line":179},7,[181],{"type":14,"tag":39,"props":182,"children":183},{"style":94},[184],{"type":20,"value":185},"// Set horizontal alignment for all cells in this column to center\n",{"type":14,"tag":39,"props":187,"children":189},{"class":41,"line":188},8,[190,195,199],{"type":14,"tag":39,"props":191,"children":192},{"style":63},[193],{"type":20,"value":194},"header.Style.HorizontalAlign ",{"type":14,"tag":39,"props":196,"children":197},{"style":46},[198],{"type":20,"value":120},{"type":14,"tag":39,"props":200,"children":201},{"style":63},[202],{"type":20,"value":203}," ReoGridHorAlign.Center;\n",{"type":14,"tag":39,"props":205,"children":207},{"class":41,"line":206},9,[208],{"type":14,"tag":39,"props":209,"children":210},{"emptyLinePlaceholder":84},[211],{"type":20,"value":87},{"type":14,"tag":39,"props":213,"children":215},{"class":41,"line":214},10,[216],{"type":14,"tag":39,"props":217,"children":218},{"style":94},[219],{"type":20,"value":220},"// Give the check box a small padding (2 pixels)\n",{"type":14,"tag":39,"props":222,"children":224},{"class":41,"line":223},11,[225,230,234,239,244,248,253,257,262,266,271,275,281],{"type":14,"tag":39,"props":226,"children":227},{"style":63},[228],{"type":20,"value":229},"header.Style.Padding ",{"type":14,"tag":39,"props":231,"children":232},{"style":46},[233],{"type":20,"value":120},{"type":14,"tag":39,"props":235,"children":236},{"style":46},[237],{"type":20,"value":238}," new",{"type":14,"tag":39,"props":240,"children":241},{"style":52},[242],{"type":20,"value":243}," System",{"type":14,"tag":39,"props":245,"children":246},{"style":63},[247],{"type":20,"value":140},{"type":14,"tag":39,"props":249,"children":250},{"style":52},[251],{"type":20,"value":252},"Windows",{"type":14,"tag":39,"props":254,"children":255},{"style":63},[256],{"type":20,"value":140},{"type":14,"tag":39,"props":258,"children":259},{"style":52},[260],{"type":20,"value":261},"Forms",{"type":14,"tag":39,"props":263,"children":264},{"style":63},[265],{"type":20,"value":140},{"type":14,"tag":39,"props":267,"children":268},{"style":52},[269],{"type":20,"value":270},"Padding",{"type":14,"tag":39,"props":272,"children":273},{"style":63},[274],{"type":20,"value":130},{"type":14,"tag":39,"props":276,"children":278},{"style":277},"--shiki-light:#005CC5;--shiki-dark:#79B8FF;--shiki-default:#005CC5",[279],{"type":20,"value":280},"2",{"type":14,"tag":39,"props":282,"children":283},{"style":63},[284],{"type":20,"value":168},{"type":14,"tag":22,"props":286,"children":287},{},[288,290],{"type":20,"value":289},"セルタイプのみを設定してもセルは表示されません。セルボディはセルデータが入力されたときにのみ表示されます。\n",{"type":14,"tag":291,"props":292,"children":295},"img",{"alt":293,"src":294},"110","/document/images/110.png",[],{"type":14,"tag":28,"props":297,"children":299},{"className":30,"code":298,"language":32,"meta":7,"style":7},"grid[\"A1:A5\"] = new object[] { false, true, false, false, true };\n",[300],{"type":14,"tag":35,"props":301,"children":302},{"__ignoreMap":7},[303],{"type":14,"tag":39,"props":304,"children":305},{"class":41,"line":42},[306,311,316,321,325,329,334,339,344,349,354,358,362,366,370,374,378],{"type":14,"tag":39,"props":307,"children":308},{"style":63},[309],{"type":20,"value":310},"grid[",{"type":14,"tag":39,"props":312,"children":313},{"style":69},[314],{"type":20,"value":315},"\"A1:A5\"",{"type":14,"tag":39,"props":317,"children":318},{"style":63},[319],{"type":20,"value":320},"] ",{"type":14,"tag":39,"props":322,"children":323},{"style":46},[324],{"type":20,"value":120},{"type":14,"tag":39,"props":326,"children":327},{"style":46},[328],{"type":20,"value":238},{"type":14,"tag":39,"props":330,"children":331},{"style":46},[332],{"type":20,"value":333}," object",{"type":14,"tag":39,"props":335,"children":336},{"style":63},[337],{"type":20,"value":338},"[] { ",{"type":14,"tag":39,"props":340,"children":341},{"style":277},[342],{"type":20,"value":343},"false",{"type":14,"tag":39,"props":345,"children":346},{"style":63},[347],{"type":20,"value":348},", ",{"type":14,"tag":39,"props":350,"children":351},{"style":277},[352],{"type":20,"value":353},"true",{"type":14,"tag":39,"props":355,"children":356},{"style":63},[357],{"type":20,"value":348},{"type":14,"tag":39,"props":359,"children":360},{"style":277},[361],{"type":20,"value":343},{"type":14,"tag":39,"props":363,"children":364},{"style":63},[365],{"type":20,"value":348},{"type":14,"tag":39,"props":367,"children":368},{"style":277},[369],{"type":20,"value":343},{"type":14,"tag":39,"props":371,"children":372},{"style":63},[373],{"type":20,"value":348},{"type":14,"tag":39,"props":375,"children":376},{"style":277},[377],{"type":20,"value":353},{"type":14,"tag":39,"props":379,"children":380},{"style":63},[381],{"type":20,"value":382}," };\n",{"type":14,"tag":22,"props":384,"children":385},{},[386,388],{"type":20,"value":387},"チェックボックスセルはブール値をデータとして受け取り、グリッドは以下のように表示されます。\n",{"type":14,"tag":291,"props":389,"children":392},{"alt":390,"src":391},"111","/document/images/111.png",[],{"type":14,"tag":15,"props":394,"children":396},{"id":395},"エディターで列タイプを設定",[397],{"type":20,"value":395},{"type":14,"tag":22,"props":399,"children":400},{},[401,403],{"type":20,"value":402},"列全体を選択してヘッダーを右クリックし、「Properties...」を選択します。\n",{"type":14,"tag":291,"props":404,"children":407},{"alt":405,"src":406},"127","/document/images/127.png",[],{"type":14,"tag":22,"props":409,"children":410},{},[411,413],{"type":20,"value":412},"「Progress」を選択して「OK」を押します。\n",{"type":14,"tag":291,"props":414,"children":417},{"alt":415,"src":416},"128","/document/images/128.png",[],{"type":14,"tag":22,"props":419,"children":420},{},[421,423],{"type":20,"value":422},"「C」列に30などの数値を入力します。\n",{"type":14,"tag":291,"props":424,"children":427},{"alt":425,"src":426},"129","/document/images/129.png",[],{"type":14,"tag":22,"props":429,"children":430},{},[431,433],{"type":20,"value":432},"Enterキーを押すと、セルがプログレスタイプに変わります。\n",{"type":14,"tag":291,"props":434,"children":437},{"alt":435,"src":436},"130","/document/images/130.png",[],{"type":14,"tag":439,"props":440,"children":441},"style",{},[442],{"type":20,"value":443},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":80,"depth":80,"links":445},[446,447],{"id":17,"depth":80,"text":17},{"id":395,"depth":80,"text":395},"markdown","content:document:7.cell-types:7.cells-type-for-entire-column.md","content","document/7.cell-types/7.cells-type-for-entire-column.md","document/7.cell-types/7.cells-type-for-entire-column","md",{"loc":4},[456,779,782,785,788,791,794,797,800],{"title":457,"_path":458,"children":459},"Document","/document",[460,471,476,508,525,554,586,604,618,641,652,668,691,702,722,742,771],{"title":461,"_path":462,"children":463},"はじめに","/document/getting-started",[464,465,468],{"title":461,"_path":462},{"title":466,"_path":467},"インストール","/document/getting-started/installation",{"title":469,"_path":470},"V3 から V4 への移行ガイド","/document/getting-started/migrate-from-v3",{"title":472,"_path":473,"children":474},"ワークブック","/document/workbook",[475],{"title":472,"_path":473},{"title":477,"_path":478,"children":479},"ワークシート","/document/worksheet",[480,481,484,487,490,493,496,499,502,505],{"title":477,"_path":478},{"title":482,"_path":483},"行、列、ヘッダー","/document/worksheet/row-and-column",{"title":485,"_path":486},"範囲","/document/worksheet/range",{"title":488,"_path":489},"名前付き範囲","/document/worksheet/named-range",{"title":491,"_path":492},"セルの結合と解除","/document/worksheet/merge-and-unmerge",{"title":494,"_path":495},"パーシャルグリッド","/document/worksheet/partial-grid",{"title":497,"_path":498},"複数行ヘッダー","/document/worksheet/multiple-row-header",{"title":500,"_path":501},"ウィンドウ枠の固定","/document/worksheet/freeze",{"title":503,"_path":504},"ズーム","/document/worksheet/zoom",{"title":506,"_path":507},"設定とオプション","/document/worksheet/settings",{"title":509,"_path":510,"children":511},"選択とナビゲーション","/document/selection",[512,513,516,519,522],{"title":509,"_path":510},{"title":514,"_path":515},"フォーカスと選択","/document/selection/selection",{"title":517,"_path":518},"範囲の選択","/document/selection/pick-range",{"title":520,"_path":521},"クリップボード","/document/selection/clipboard",{"title":523,"_path":524},"テキスト検索","/document/selection/text-search",{"title":526,"_path":527,"children":528},"データ管理","/document/data",[529,530,533,536,539,542,545,548,551],{"title":526,"_path":527},{"title":531,"_path":532},"データソース","/document/data/datasource",{"title":534,"_path":535},"データフィルタリング","/document/data/data-filtering",{"title":537,"_path":538},"組み込みオートフィルター","/document/data/builtin-autofilter",{"title":540,"_path":541},"条件付きフィルター","/document/data/conditional-filter",{"title":543,"_path":544},"条件付きスタイル","/document/data/conditional-styles",{"title":546,"_path":547},"グループとアウトライン","/document/data/group-and-outline",{"title":549,"_path":550},"データバリデーション","/document/data/data-validation",{"title":552,"_path":553},"保護とロック","/document/data/protection",{"title":555,"_path":556,"children":557},"セル","/document/cell",[558,559,562,565,568,571,574,577,580,583],{"title":555,"_path":556},{"title":560,"_path":561},"セルの編集","/document/cell/cell-edit",{"title":563,"_path":564},"スタイル","/document/cell/style",{"title":566,"_path":567},"罫線","/document/cell/border",{"title":569,"_path":570},"データ書式","/document/cell/data-format",{"title":572,"_path":573},"カスタムデータフォーマッター","/document/cell/custom-data-formatter",{"title":575,"_path":576},"データ連続入力","/document/cell/auto-fill",{"title":578,"_path":579},"リッチフォーマットテキスト","/document/cell/rich-format-text",{"title":581,"_path":582},"セルテキストの回転","/document/cell/rotate-cell-text",{"title":584,"_path":585},"セルの反復処理","/document/cell/iterate-cells",{"title":587,"_path":588,"children":589},"セルタイプ","/document/cell-types",[590,591,594,597,600,603],{"title":587,"_path":588},{"title":592,"_path":593},"組み込みセルタイプ","/document/cell-types/built-in-cell-types",{"title":595,"_path":596},"カスタムセル","/document/cell-types/custom-cell",{"title":598,"_path":599},"ドロップダウンリストセル","/document/cell-types/dropdown-list-cell",{"title":601,"_path":602},"コンボリストセル","/document/cell-types/combo-list-cell",{"title":8,"_path":4},{"title":605,"_path":606,"children":607},"数式","/document/formula",[608,609,612,615],{"title":605,"_path":606},{"title":610,"_path":611},"カスタム関数","/document/formula/custom-function",{"title":613,"_path":614},"数式関数","/document/formula/formula-functions",{"title":616,"_path":617},"VLOOKUP","/document/formula/vlookup",{"title":619,"_path":620,"children":621},"チャート","/document/chart",[622,623,626,629,632,635,638],{"title":619,"_path":620},{"title":624,"_path":625},"縦棒グラフ","/document/chart/column-chart",{"title":627,"_path":628},"横棒グラフ","/document/chart/bar-chart",{"title":630,"_path":631},"折れ線グラフ","/document/chart/line-chart",{"title":633,"_path":634},"面グラフ","/document/chart/area-chart",{"title":636,"_path":637},"2D円グラフ","/document/chart/pie-2d-chart",{"title":639,"_path":640},"ドーナツグラフ","/document/chart/doughnut-chart",{"title":642,"_path":643,"children":644},"フローティングオブジェクト","/document/floating",[645,646,649],{"title":642,"_path":643},{"title":647,"_path":648},"描画シェイプ","/document/floating/drawing-shapes",{"title":650,"_path":651},"フローティング画像","/document/floating/floating-image",{"title":653,"_path":654,"children":655},"イベント","/document/events",[656,657,659,662,665],{"title":653,"_path":654},{"title":653,"_path":658},"/document/events/events",{"title":660,"_path":661},"キーボードイベント","/document/events/keyboard-events",{"title":663,"_path":664},"マウスイベント","/document/events/mouse-events",{"title":666,"_path":667},"SelectionRangeChanged","/document/events/selection-events",{"title":669,"_path":670,"children":671},"カスタマイズ","/document/customization",[672,673,676,679,682,685,688],{"title":669,"_path":670},{"title":674,"_path":675},"コントロールの外観","/document/customization/control-appearance",{"title":677,"_path":678},"シートタブコントロール","/document/customization/sheet-tab-control",{"title":680,"_path":681},"使用可能なホットキー","/document/customization/hot-keys",{"title":683,"_path":684},"言語ローカライズ","/document/customization/language-localization",{"title":686,"_path":687},"アドレスバーと数式バー","/document/customization/formula-bar",{"title":689,"_path":690},"ReoGridEditor","/document/customization/editor",{"title":692,"_path":693,"children":694},"アクション","/document/actions",[695,696,699],{"title":692,"_path":693},{"title":697,"_path":698},"ReoGridアクションフレームワーク","/document/actions/actions",{"title":700,"_path":701},"組み込みワークシートアクション","/document/actions/built-in-actions",{"title":703,"_path":704,"children":705},"ファイル形式","/document/io",[706,707,710,713,716,719],{"title":703,"_path":704},{"title":708,"_path":709},"Excelファイル形式 (xlsx)","/document/io/excel-file-format",{"title":711,"_path":712},"CSV形式","/document/io/csv-format",{"title":714,"_path":715},"RGF形式","/document/io/rgf-format",{"title":717,"_path":718},"Excel形式とRGF形式の違い","/document/io/difference-between-excel-and-rgf-format",{"title":720,"_path":721},"HTMLとしてエクスポート","/document/io/export-as-html",{"title":723,"_path":724,"children":725},"高度な機能","/document/advanced",[726,727,730,733,736,739],{"title":723,"_path":724},{"title":728,"_path":729},"メモリワークブック","/document/advanced/memory-workbook",{"title":731,"_path":732},"ページングと印刷","/document/advanced/paging-and-print",{"title":734,"_path":735},"コントロールのリセット","/document/advanced/reset-control",{"title":737,"_path":738},"パフォーマンス","/document/advanced/performance",{"title":740,"_path":741},"設定","/document/advanced/settings",{"title":743,"_path":744,"children":745},"ハウツーガイド","/document/how-to",[746,747,750,753,756,759,762,765,768],{"title":743,"_path":744},{"title":748,"_path":749},"ReoGridの推奨プラクティス","/document/how-to/recommended-practice-for-using-reogrid",{"title":751,"_path":752},"DataTableでスプレッドシートを埋める","/document/how-to/fill-grid-with-datatable",{"title":754,"_path":755},"遅延読み込みモードによる大量データの高速読み込み","/document/how-to/fast-load-large-data-with-lazy-load-mode",{"title":757,"_path":758},"カスタムドロップダウンセルの作成","/document/how-to/create-custom-drop-down-cell",{"title":760,"_path":761},"日付ピッカーセルの作成","/document/how-to/create-date-picker-cell",{"title":763,"_path":764},"Excelファイルからすべての画像を読み取る","/document/how-to/read-all-images-from-excel-file",{"title":766,"_path":767},"VB.NETでReoGridを使用するためのヒント","/document/how-to/use-reogrid-in-vb-net",{"title":769,"_path":770},"全選択チェックボックスヘッダーの作成","/document/how-to/create-select-all-checkbox-header",{"title":772,"_path":773,"children":774},"トラブルシューティング","/document/troubleshooting",[775,776],{"title":772,"_path":773},{"title":777,"_path":778},"PInvoke例外の修正","/document/troubleshooting/fix-pinvoke-exception",{"title":780,"_path":781},"エディション・機能一覧","/editions-features",{"title":783,"_path":784},"個人情報保護方針","/privacy-policy",{"title":786,"_path":787},"動作環境","/requirements",{"title":789,"_path":790},"ReoGrid利用許諾契約書","/terms",{"title":792,"_path":793},"ReoGrid利用許諾契約書(Ver.3)","/terms-v3",{"title":795,"_path":796},"ReoGrid利用許諾契約書(Ver.4)","/terms-v4",{"title":798,"_path":799},"ReoGrid 4 トライアルライセンスポリシー","/terms-v4-trial",{"title":801,"_path":802},"ReoGrid Web Edition 利用許諾契約書","/terms-web",1786025054918]