ToolBoxItem الواجهة

يمثل العنصر في من مربع الأدوات.

مساحة الاسم:  EnvDTE
التجميع:  EnvDTE (في EnvDTE.dll)

بناء الجملة

'إقرار
<GuidAttribute("46538D1B-4D81-4002-8BB4-DBDB65BABB23")> _
Public Interface ToolBoxItem
[GuidAttribute("46538D1B-4D81-4002-8BB4-DBDB65BABB23")]
public interface ToolBoxItem
[GuidAttribute(L"46538D1B-4D81-4002-8BB4-DBDB65BABB23")]
public interface class ToolBoxItem
[<GuidAttribute("46538D1B-4D81-4002-8BB4-DBDB65BABB23")>]
type ToolBoxItem =  interface end
public interface ToolBoxItem

ملاحظات

ToolBoxItemيمكن أن يحتوي الكائن على عناصر التحكم، والنص، والأجزاء HTML، أو غير ذلك الالكائنات.

أمثلة

Sub ToolBoxItemExample()
    Dim tlBox As ToolBox
    Dim tbxTabs As ToolBoxTabs
    Dim tbxTab As ToolBoxTab
    Dim tbxItem As ToolBoxItem

    Try
        ' Create an object reference to the IDE's ToolBox object and
        ' its tabs.
        tlBox = DTE.Windows.Item(Constants.vsWindowKindToolbox).Object
        tbxTabs = tlBox.ToolBoxTabs

        ' Select the first ToolBox tab.
        tbxTab = tbxTabs.Item(1)
        tbxTab.Activate()
        tbxItem = tbxTab.ToolBoxItems.Item(4)
        MsgBox("ToolBox item name: " & tbxItem.Name)

    Catch ex As System.Exception
        MsgBox("ERROR: " & ex.Message)
    End Try
End Sub

راجع أيضًَا

المرجع

ToolBoxItem الأعضاء

EnvDTE مساحة الاسم