Share via


IExplorerListViewItemRenderer.DrawItem Method

Renders the content of the list view cell in the explorer.

Namespace:  Microsoft.SqlServer.Management.Explorer
Assembly:  Microsoft.SqlServer.Management.SDK.SqlStudio (in Microsoft.SqlServer.Management.SDK.SqlStudio.dll)

Syntax

'Declaration
Sub DrawItem ( _
    g As Graphics, _
    r As Rectangle, _
    text As String, _
    tag As Object, _
    item As ListViewItem _
)
'Usage
Dim instance As IExplorerListViewItemRenderer
Dim g As Graphics
Dim r As Rectangle
Dim text As String
Dim tag As Object
Dim item As ListViewItem

instance.DrawItem(g, r, text, tag, item)
void DrawItem(
    Graphics g,
    Rectangle r,
    string text,
    Object tag,
    ListViewItem item
)
void DrawItem(
    Graphics^ g, 
    Rectangle r, 
    String^ text, 
    Object^ tag, 
    ListViewItem^ item
)
abstract DrawItem : 
        g:Graphics * 
        r:Rectangle * 
        text:string * 
        tag:Object * 
        item:ListViewItem -> unit 
function DrawItem(
    g : Graphics, 
    r : Rectangle, 
    text : String, 
    tag : Object, 
    item : ListViewItem
)

Parameters

  • text
    Type: System.String
    The string value of the objects within the list.