QueryResultBase.GenerateHtmlForItemIcon Method

The GenerateHtmlForItemIcon method of the QueryResultBase class generates the HTML for the icon for the specified DataRow in the search result set.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
Protected Overridable Function GenerateHtmlForItemIcon ( _
    objectDataRow As DataRow, _
    iIndexOfItemInDataSet As Integer, _
    iIndexOfItemInGroup As Integer, _
    strElemIDPrefix As String _
) As String
'Usage
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
)

Parameters

  • iIndexOfItemInDataSet
    Type: System.Int32
    Index of row in the result DataSet.
  • iIndexOfItemInGroup
    Type: System.Int32
    Index of an item in a group when grouping is enabled. This index is used to expand and collapse groups of results.
  • strElemIDPrefix
    Type: System.String
    This element is used for HTML automation and is reserved for internal use only.

Return Value

Type: System.String
String that contains HTML for the icon to be displayed for each matching item.

Remarks

The GenerateHtmlForItemIcon method displays an edit icon for all items if current view is simple list view.

See Also

Reference

QueryResultBase Class

QueryResultBase Members

Microsoft.SharePoint.Portal.WebControls Namespace