spreadsheetClearCell

説明

指定したセルからすべてのスタイルと値をクリアします。

戻り値

なし 

履歴

  • ColdFusion(2025 リリース):関数が追加されました。

シンタックス

spreadsheetClearCell(spreadSheetObject,row,column)
spreadsheetClearCell(spreadSheetObject,row,column)
spreadsheetClearCell(spreadSheetObject,row,column)

パラメーター

名前

 

 

必須

 

 

Type

 

 

説明

 

 

spreadSheetObject

 

 

はい

 

 

ExcelInfo 

 

 

指定されたセルをクリアする Excel スプレッドシートオブジェクトです。

 

row

 

 

はい

 

 

Integer 

 

 

クリアするセルの行番号です。

 

 

column

 

 

はい

 

 

Integer 

 

 

クリアするセルの列番号です。

 

 

<cfquery name=&quot;art&quot; datasource=&quot;art&quot;>
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & &quot;art.xls&quot;;
// スプレッドシートオブジェクトを作成します
theSheet=spreadsheetNew(&quot;SampleData&quot;)
// クエリから行を追加します
spreadsheetAddRows(theSheet,art)
// writeOutput(theFile)
// セルの書式設定の構造を定義します
myFormat=StructNew();
myFormat.color=&quot;blue&quot;;
myFormat.bold=&quot;true&quot;;
myFormat.underline=&quot;true&quot;;
myFormat.alignment=&quot;center&quot;;
myFormat.rotation=45;
myFormat.italic=&quot;true&quot;
// セル(10,5)に書式を設定します
SpreadsheetFormatCell(theSheet,myFormat,10,4)
// 書式をクリアします
spreadsheetClearCell(theSheet,10,4)
spreadsheetWrite(theSheet,theFile,&quot;yes&quot;)
</cfscript>
<cfquery name=&quot;art&quot; datasource=&quot;art&quot;> SELECT * FROM ART </cfquery> <cfscript> theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & &quot;art.xls&quot;; // スプレッドシートオブジェクトを作成します theSheet=spreadsheetNew(&quot;SampleData&quot;) // クエリから行を追加します spreadsheetAddRows(theSheet,art) // writeOutput(theFile) // セルの書式設定の構造を定義します myFormat=StructNew(); myFormat.color=&quot;blue&quot;; myFormat.bold=&quot;true&quot;; myFormat.underline=&quot;true&quot;; myFormat.alignment=&quot;center&quot;; myFormat.rotation=45; myFormat.italic=&quot;true&quot; // セル(10,5)に書式を設定します SpreadsheetFormatCell(theSheet,myFormat,10,4) // 書式をクリアします spreadsheetClearCell(theSheet,10,4) spreadsheetWrite(theSheet,theFile,&quot;yes&quot;) </cfscript>
<cfquery name=&quot;art&quot; datasource=&quot;art&quot;>
    SELECT * FROM ART
</cfquery>
<cfscript>
    theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & &quot;art.xls&quot;;
    // スプレッドシートオブジェクトを作成します
    theSheet=spreadsheetNew(&quot;SampleData&quot;)
    // クエリから行を追加します
    spreadsheetAddRows(theSheet,art)
   // writeOutput(theFile)
    
    // セルの書式設定の構造を定義します
    myFormat=StructNew();
        myFormat.color=&quot;blue&quot;;
        myFormat.bold=&quot;true&quot;;
        myFormat.underline=&quot;true&quot;;
        myFormat.alignment=&quot;center&quot;;
        myFormat.rotation=45;
        myFormat.italic=&quot;true&quot;
    // セル(10,5)に書式を設定します
    SpreadsheetFormatCell(theSheet,myFormat,10,4)
    // 書式をクリアします
    spreadsheetClearCell(theSheet,10,4)
    spreadsheetWrite(theSheet,theFile,&quot;yes&quot;)
</cfscript>

ヘルプをすばやく簡単に入手

新規ユーザーの場合

Acrobat 購入相談

Acrobat 購入相談

Acrobat 購入相談

Acrobat 購入相談