共用方式為


UserInteractionServices.GetIcon 方法 (IModelElement, ElementIconState)

傳回在 UI 中使用的圖示點陣圖,以符合提供的項目和圖示狀態。

命名空間:  Microsoft.Data.Schema
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
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

參數

傳回值

型別:System.Drawing.Bitmap
要求之圖示的點陣圖。

.NET Framework 安全性

請參閱

參考

UserInteractionServices 類別

GetIcon 多載

Microsoft.Data.Schema 命名空間

IModelElement

ElementIconState