UserInteractionServices.GetIcon Method (ModelElementClass, 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 ( _
elementType As ModelElementClass, _
state As ElementIconState _
) As Bitmap
public virtual Bitmap GetIcon(
ModelElementClass elementType,
ElementIconState state
)
public:
virtual Bitmap^ GetIcon(
ModelElementClass^ elementType,
ElementIconState state
)
abstract GetIcon :
elementType:ModelElementClass *
state:ElementIconState -> Bitmap
override GetIcon :
elementType:ModelElementClass *
state:ElementIconState -> Bitmap
public function GetIcon(
elementType : ModelElementClass,
state : ElementIconState
) : Bitmap
Parameters
- elementType
Type: Microsoft.Data.Schema.SchemaModel.ModelElementClass
A ModelElementClass 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.