<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFCOL</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFCOL</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
テーブルの列ヘッダ、幅、配置、およびテキストを定義します。cftable タグ内で使用します。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">カテゴリ</span>
<p>
データ出力タグ
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cfcol
   header = &quot;column_header_text&quot;
   width = &quot;number_indicating_width_of_column&quot;
   align = &quot;Left&quot;、&quot;Right&quot;、&quot;Center&quot; のいずれか
   text = &quot;column_text&quot;&gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfcontent、cfoutput、cftable、『ColdFusion MX 開発ガイド』の第40章の「リモートサーバーとの対話」 の「cfftp タグによるファイルオペレーションの実行」
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">ヒストリ</span>
<p>
ColdFusion&#160;MX: ダイナミックな cfcol ステートメントを構築する機能が追加されました。 
</p>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
cftable タグ内には、1 つ以上の cfcol タグを指定する必要があります。また、cfcol タグおよび cftable タグはページ内で隣接させて配置する必要があります。cftable タグ内にネストできるのは、cfcol タグのみです。cftable タグはネストできません。
</p>

<p>
cfcol の header で指定されるテキストを表示するには、cfcol の header 属性と cftable の colHeader 属性を指定する必要があります。どちらかの属性を一方だけ指定しても、ヘッダは表示させません。ここではエラーは発生しません。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span><pre>&lt;!--- この例では、クエリーから返される情報を、cfcol および cftable を
使用して整列する方法を示します。 ---&gt;
&lt;!--- クエリーで cfdocexamples データソースから情報を選択します。 ---&gt;
&lt;cfquery name = &quot;GetEmployees&quot; dataSource = &quot;cfdocexamples&quot;&gt;
   SELECT  Emp_ID, FirstName, LastName, EMail, Phone, Department
   FROM Employees
&lt;/cfquery&gt;
&lt;html&gt;
&lt;body&gt;
&lt;h3&gt;cfcol の例&lt;/h3&gt;
&lt;!--- HTMLTable 属性を使用して、cftable を PRE 形式の情報としてではなく 
HTML テーブルとして表示する ---&gt;
&lt;cftable
   query = &quot;GetEmployees&quot;
   startRow = &quot;1&quot; colSpacing = &quot;3&quot; 
   HTMLTable colheaders&gt;
&lt;!--- 各 cfcol タグで、テーブル内の列の幅、ヘッダ情報、セルの
テキスト/CFML を設定します。 ---&gt;
   &lt;cfcol header = &quot;&lt;b&gt;ID&lt;/b&gt;&quot;
      align = &quot;Left&quot;
      width = 2
      text  = &quot;#Emp_ID#&quot;&gt;
   &lt;cfcol header = &quot;&lt;b&gt;名前と電子メール&lt;/b&gt;&quot;   
      align = &quot;Left&quot;
      width = 15
      text  = &quot;&lt;a href = 'mailto:#Email#'&gt;#FirstName# #LastName#&lt;/A&gt;&quot;&gt;
   &lt;cfcol header = &quot;&lt;b&gt;電話番号&lt;/b&gt;&quot;
      align = &quot;Center&quot;
      width = 15
      text  = &quot;#Phone#&quot;&gt;
&lt;/cftable&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="HEADER">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">HEADER</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>列ヘッダのテキストです。この属性を使用する場合は、cftable colHeaders 属性も使用する必要があります。 </p>

  </td>
  </tr>
  </table>
</div>
<div id="WIDTH">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">WIDTH</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "20"


<p>列の幅です。表示されるデータの長さがこの値を越える場合、データは列内に収まるように切り捨てられます。これを避けるには、HTML の table タグを使用します。</p>
<p>前後の cftable タグに htmltable 属性がある場合は、width でテーブル幅のパーセントを指定すると、テキストが切り捨てられません。あるいは、width で文字数を指定します。 </p>

  </td>
  </tr>
  </table>
</div>
<div id="ALIGN">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ALIGN</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "left"


<p>列の配置です。</p><ul>

<li>left</li>

<li>right</li>

<li>center</li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="TEXT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TEXT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>二重引用符 (&quot;) で区切ったテキストです。表示する内容を決定します。ルールは、cfoutput セクションの場合と同じです。ハイパーリンク、イメージへのリファレンス、入力コントロールなどを埋め込むことができます。</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
