次の方法で共有


QueryResultBase.GenerateHtmlForItemIcon メソッド (Microsoft.SharePoint.Portal.WebControls)

QueryResultBase クラスの GenerateHtmlForItemIcon メソッドは、検索結果セットの指定された DataRow に対応するアイコンの HTML を生成します。

名前空間: Microsoft.SharePoint.Portal.WebControls
アセンブリ: Microsoft.SharePoint.Portal (microsoft.sharepoint.portal.dll 内)

構文

'宣言
Protected Overridable Function GenerateHtmlForItemIcon ( _
    objectDataRow As DataRow, _
    iIndexOfItemInDataSet As Integer, _
    iIndexOfItemInGroup As Integer, _
    strElemIDPrefix As String _
) As String
'使用
Dim objectDataRow As DataRow
Dim iIndexOfItemInDataSet As Integer
Dim iIndexOfItemInGroup As Integer
Dim strElemIDPrefix As String
Dim returnValue As String

returnValue = Me.GenerateHtmlForItemIcon(objectDataRow, iIndexOfItemInDataSet, iIndexOfItemInGroup, strElemIDPrefix)
protected virtual string GenerateHtmlForItemIcon (
    DataRow objectDataRow,
    int iIndexOfItemInDataSet,
    int iIndexOfItemInGroup,
    string strElemIDPrefix
)

パラメータ

  • objectDataRow
    単一の項目を表す DataRow。
  • iIndexOfItemInDataSet
    結果 DataSet の行のインデックス。
  • iIndexOfItemInGroup
    グループ内でのアイテムのインデックス (グループ化が有効な場合)。このインデックスは、結果グループの展開または折りたたみに使用されます。
  • strElemIDPrefix
    この要素は HTML の自動化に使用され、内部処理専用として予約されています。

戻り値

一致する各アイテムに対して表示されるアイコン用の HTML を含む文字列。

備考

現在のビューがシンプルなリスト ビューの場合、GenerateHtmlForItemIcon メソッドはすべての項目に対して編集アイコンを表示します。

関連項目

参照

QueryResultBase クラス
QueryResultBase メンバ
Microsoft.SharePoint.Portal.WebControls 名前空間