Share via


UserInteractionServices.GetIcon Method (IModelElement, ElementIconState)

Returns a bitmap for an icon to use in the UI to match the provided element and icon state.

Namespace:  Microsoft.Data.Schema
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Overridable Function GetIcon ( _
    element As IModelElement, _
    state As ElementIconState _
) As Bitmap
public virtual Bitmap GetIcon(
    IModelElement element,
    ElementIconState state
)
public:
virtual Bitmap^ GetIcon(
    IModelElement^ element, 
    ElementIconState state
)
abstract GetIcon : 
        element:IModelElement * 
        state:ElementIconState -> Bitmap 
override GetIcon : 
        element:IModelElement * 
        state:ElementIconState -> Bitmap 
public function GetIcon(
    element : IModelElement, 
    state : ElementIconState
) : Bitmap

Parameters

Return Value

Type: System.Drawing.Bitmap
A bitmap for the requested icon.

.NET Framework Security

See Also

Reference

UserInteractionServices Class

GetIcon Overload

Microsoft.Data.Schema Namespace

IModelElement

ElementIconState