UserInteractionServices.GetIcon Method (IModelElement, IconState)
Gets the icon for a certain element with a passed-in state.
Namespace: Microsoft.Data.Schema.Extensibility
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Overridable Function GetIcon ( _
element As IModelElement, _
state As IconState _
) As Bitmap
'Usage
Dim instance As UserInteractionServices
Dim element As IModelElement
Dim state As IconState
Dim returnValue As Bitmap
returnValue = instance.GetIcon(element, _
state)
public virtual Bitmap GetIcon(
IModelElement element,
IconState state
)
public:
virtual Bitmap^ GetIcon(
IModelElement^ element,
IconState state
)
public function GetIcon(
element : IModelElement,
state : IconState
) : Bitmap
abstract GetIcon :
element:IModelElement *
state:IconState -> Bitmap
override GetIcon :
element:IModelElement *
state:IconState -> Bitmap
Parameters
- element
Type: Microsoft.Data.Schema.SchemaModel.IModelElement
The model element
- state
Type: Microsoft.Data.Schema.Extensibility.IconState
The icon state
Return Value
Type: System.Drawing.Bitmap
.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.