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
'宣言
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.
- elementType
Type: Microsoft.VisualStudio.Language.Intellisense.UIElementType
The type of UIElement to be returned.
Return Value
Type: System.Windows.UIElement
A valid WPF UIElement, or nulla null reference (Nothing in Visual Basic) if none could be created.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.