Freigeben über


IUIElementProvider<TItem, TContext>.GetUIElement Method

Gets a UIElement to display an item for the specified context.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'Declaration
Function GetUIElement ( _
    itemToRender As TItem, _
    context As TContext, _
    elementType As UIElementType _
) As UIElement
UIElement GetUIElement(
    TItem itemToRender,
    TContext context,
    UIElementType elementType
)
UIElement^ GetUIElement(
    TItem itemToRender, 
    TContext context, 
    UIElementType elementType
)
abstract GetUIElement : 
        itemToRender:'TItem * 
        context:'TContext * 
        elementType:UIElementType -> UIElement
function GetUIElement(
    itemToRender : TItem, 
    context : TContext, 
    elementType : UIElementType
) : UIElement

Parameters

  • itemToRender
    Type: TItem

    The item for which to return a UIElement.

  • context
    Type: TContext

    The context in which the item is to be rendered.

Return Value

Type: UIElement
A valid WPF UIElement, or nulla null reference (Nothing in Visual Basic) if none could be created.

.NET Framework Security

See Also

Reference

IUIElementProvider<TItem, TContext> Interface

Microsoft.VisualStudio.Language.Intellisense Namespace