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
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
An IModelElement object.
- state
Type: Microsoft.Data.Schema.ElementIconState
A member of the ElementIconState enumeration.
Return Value
Type: System.Drawing.Bitmap
A bitmap for the requested icon.
.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.