WorkflowMenuCommands WorkflowMenuCommands WorkflowMenuCommands WorkflowMenuCommands Class

定義

警告

此 API 現已淘汰。

定義一組 CommandID 欄位,每一個欄位都對應至工作流程設計工具提供的一個命令函式。Defines a set of CommandID fields that each corresponds to a command function provided by the workflow designers. 這個類別無法被繼承。This class cannot be inherited.

public ref class WorkflowMenuCommands sealed : System::ComponentModel::Design::StandardCommands
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class WorkflowMenuCommands : System.ComponentModel.Design.StandardCommands
type WorkflowMenuCommands = class
    inherit StandardCommands
Public NotInheritable Class WorkflowMenuCommands
Inherits StandardCommands
繼承
WorkflowMenuCommandsWorkflowMenuCommandsWorkflowMenuCommandsWorkflowMenuCommands
屬性

範例

下列範例將示範如何建立自訂 MenuCommandServiceThe following example demonstrates how to create a custom MenuCommandService. 在此範例中,呼叫 ShowContextMenu 時,會建立一個內容功能表。In this example, a context menu is created when the ShowContextMenu is called. GetSelectionMenuItems 方法中,會利用 WorkflowMenuCommands 類別,使工作流程設計工具所提供的適當功能表命令與其對應文字產生關聯。In the GetSelectionMenuItems method, the WorkflowMenuCommands class is utilized to associate the proper menu commands provided by the workflow designer with their corresponding text. 當完成這項作業時,事件處理常式會與每一個命令產生關聯,如此一來,當選取此命令時,就會叫用適當的 MenuCommandWhen this is finished, an event handler is associated with each command so that when the command is selected, the appropriate MenuCommand is invoked.

internal sealed class WorkflowMenuCommandService : MenuCommandService
{
    public WorkflowMenuCommandService(IServiceProvider serviceProvider)
        : base(serviceProvider)
    {
    }

    public override void ShowContextMenu(CommandID menuID, int x, int y)
    {
        if (menuID == WorkflowMenuCommands.SelectionMenu)
        {
            ContextMenu contextMenu = new ContextMenu();

            foreach (DesignerVerb verb in Verbs)
            {
                MenuItem menuItem = new MenuItem(verb.Text, new EventHandler(OnMenuClicked));
                menuItem.Tag = verb;
                contextMenu.MenuItems.Add(menuItem);
            }

            MenuItem[] items = GetSelectionMenuItems();
            if (items.Length > 0)
            {
                contextMenu.MenuItems.Add(new MenuItem("-"));
                foreach (MenuItem item in items)
                    contextMenu.MenuItems.Add(item);
            }

            WorkflowView workflowView = GetService(typeof(WorkflowView)) as WorkflowView;
            if (workflowView != null)
                contextMenu.Show(workflowView, workflowView.PointToClient(new Point(x, y)));
        }
    }

    private MenuItem[] GetSelectionMenuItems()
    {
        List<MenuItem> menuItems = new List<MenuItem>();

        bool addMenuItems = true;
        ISelectionService selectionService = GetService(typeof(ISelectionService)) as ISelectionService;
        if (selectionService != null)
        {
            foreach (object obj in selectionService.GetSelectedComponents())
            {
                if (!(obj is Activity))
                {
                    addMenuItems = false;
                    break;
                }
            }
        }

        if (addMenuItems)
        {
            Dictionary<CommandID, string> selectionCommands = new Dictionary<CommandID, string>();
            selectionCommands.Add(WorkflowMenuCommands.Cut, "Cut");
            selectionCommands.Add(WorkflowMenuCommands.Copy, "Copy");
            selectionCommands.Add(WorkflowMenuCommands.Paste, "Paste");
            selectionCommands.Add(WorkflowMenuCommands.Delete, "Delete");
            selectionCommands.Add(WorkflowMenuCommands.Collapse, "Collapse");
            selectionCommands.Add(WorkflowMenuCommands.Expand, "Expand");
            selectionCommands.Add(WorkflowMenuCommands.Disable, "Disable");
            selectionCommands.Add(WorkflowMenuCommands.Enable, "Enable");

            foreach (CommandID id in selectionCommands.Keys)
            {
                MenuCommand command = FindCommand(id);
                if (command != null)
                {
                    MenuItem menuItem = new MenuItem(selectionCommands[id], new EventHandler(OnMenuClicked));
                    menuItem.Tag = command;
                    menuItems.Add(menuItem);
                }
            }
        }

        return menuItems.ToArray();
    }

    private void OnMenuClicked(object sender, EventArgs e)
    {
        MenuItem menuItem = sender as MenuItem;
        if (menuItem != null && menuItem.Tag is MenuCommand)
        {
            MenuCommand command = menuItem.Tag as MenuCommand;
            command.Invoke();
        }
    }
}
Friend NotInheritable Class WorkflowMenuCommandService
    Inherits MenuCommandService
    Public Sub New(ByVal serviceProvider As IServiceProvider)
        MyBase.new(serviceProvider)
    End Sub
    Public Overrides Sub ShowContextMenu(ByVal menuID As CommandID, ByVal x As Integer, ByVal y As Integer)

        If menuID.ID = WorkflowMenuCommands.SelectionMenu.ID Then
            Dim contextMenu As New ContextMenu()

            For Each verb As DesignerVerb In Verbs
                Dim MenuItem As New MenuItem(verb.Text, AddressOf OnMenuClicked)
                MenuItem.Tag = verb
                contextMenu.MenuItems.Add(MenuItem)
            Next

            Dim items As MenuItem() = GetSelectionMenuItems()
            If (items.Length > 0) Then

                contextMenu.MenuItems.Add(New MenuItem("-"))
                For Each item As MenuItem In items
                    contextMenu.MenuItems.Add(item)
                Next

                Dim workflowView As WorkflowView = CType(GetService(GetType(WorkflowView)), WorkflowView)
                If workflowView Is Nothing Then
                    contextMenu.Show(workflowView, workflowView.PointToClient(New Point(x, y)))
                End If
            End If
        End If
    End Sub

    Private Function GetSelectionMenuItems() As MenuItem()

        Dim menuItems As New List(Of MenuItem)()

        Dim addMenuItems As Boolean = True
        Dim selectionService As ISelectionService = CType(GetService(GetType(ISelectionService)), ISelectionService)
        If selectionService IsNot Nothing Then

            For Each obj As Object In selectionService.GetSelectedComponents()
                If Not TypeOf obj Is Activity Then
                    addMenuItems = False
                    Exit For
                End If
            Next
        End If


        If (addMenuItems) Then

            Dim selectionCommands As New Dictionary(Of CommandID, String)()
            selectionCommands.Add(WorkflowMenuCommands.Cut, "Cut")
            selectionCommands.Add(WorkflowMenuCommands.Copy, "Copy")
            selectionCommands.Add(WorkflowMenuCommands.Paste, "Paste")
            selectionCommands.Add(WorkflowMenuCommands.Delete, "Delete")
            selectionCommands.Add(WorkflowMenuCommands.Collapse, "Collapse")
            selectionCommands.Add(WorkflowMenuCommands.Expand, "Expand")
            selectionCommands.Add(WorkflowMenuCommands.Disable, "Disable")
            selectionCommands.Add(WorkflowMenuCommands.Enable, "Enable")

            For Each id As CommandID In selectionCommands.Keys

                Dim command As MenuCommand = FindCommand(id)
                If command IsNot Nothing Then
                    Dim menuItem As New MenuItem(selectionCommands(id), AddressOf OnMenuClicked)
                    menuItem.Tag = command
                    menuItems.Add(menuItem)
                End If
            Next
        End If

        Return menuItems.ToArray()
    End Function

    Private Sub OnMenuClicked(ByVal sender As Object, ByVal e As EventArgs)

        Dim menuItem As MenuItem = CType(sender, MenuItem)
        If menuItem IsNot Nothing And TypeOf menuItem.Tag Is MenuCommand Then
            Dim command As MenuCommand = CType(menuItem.Tag, MenuCommand)
            command.Invoke()
        End If
    End Sub
End Class

若要啟用這個服務,請在 AddService 類別中呼叫 LoaderHost 屬性的 WorkflowDesignerLoader 方法,如下列範例所示。To enable this service, call the AddService method of the LoaderHost property in a WorkflowDesignerLoader class as shown in the following example.

protected override void Initialize()
{
    base.Initialize();

    IDesignerLoaderHost host = this.LoaderHost;
    if (host != null)
    {
        host.RemoveService(typeof(IIdentifierCreationService));
        host.AddService(typeof(IIdentifierCreationService), new IdentifierCreationService(host));
        host.AddService(typeof(IMenuCommandService), new WorkflowMenuCommandService(host));
        host.AddService(typeof(IToolboxService), new Toolbox(host));
        TypeProvider typeProvider = new TypeProvider(host);
        typeProvider.AddAssemblyReference(typeof(string).Assembly.Location);
        host.AddService(typeof(ITypeProvider), typeProvider, true);
        host.AddService(typeof(IEventBindingService), new EventBindingService());
    }
}
Protected Overrides Sub Initialize()
    MyBase.Initialize()

    Dim host As IDesignerLoaderHost = Me.LoaderHost
    If host IsNot Nothing Then
        host.RemoveService(GetType(IIdentifierCreationService))
        host.AddService(GetType(IIdentifierCreationService), New IdentifierCreationService(host))
        host.AddService(GetType(IMenuCommandService), New WorkflowMenuCommandService(host))
        host.AddService(GetType(IToolboxService), New Toolbox(host))
        Dim typeProvider As New TypeProvider(host)
        typeProvider.AddAssemblyReference(GetType(String).Assembly.Location)
        host.AddService(GetType(ITypeProvider), typeProvider, True)
        host.AddService(GetType(IEventBindingService), New EventBindingService())
    End If
End Sub

備註

注意

此資料討論已被汰換的類型及命名空間。This material discusses types and namespaces that are obsolete. 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

WorkflowMenuCommands 包含一組 CommandID 欄位,使用 AddCommandIMenuCommandService 方法加入命令時,可以使用這些欄位指定要連結的命令。WorkflowMenuCommands contains a set of CommandID fields that can be used to specify a command to link when adding a command using the AddCommand method of the IMenuCommandService.

建構函式

WorkflowMenuCommands() WorkflowMenuCommands() WorkflowMenuCommands() WorkflowMenuCommands()

初始化 WorkflowMenuCommands 類別的新執行個體。Initializes a new instance of the WorkflowMenuCommands class.

欄位

BreakpointActionMenu BreakpointActionMenu BreakpointActionMenu BreakpointActionMenu

取得中斷點動作功能表的 CommandIDGets the CommandID for the breakpoint action menu. 此欄位為唯讀。This field is read-only.

BreakpointConditionMenu BreakpointConditionMenu BreakpointConditionMenu BreakpointConditionMenu

取得中斷點條件功能表的 CommandIDGets the CommandID for the breakpoint condition menu. 此欄位為唯讀。This field is read-only.

BreakpointConstraintsMenu BreakpointConstraintsMenu BreakpointConstraintsMenu BreakpointConstraintsMenu

取得中斷點條件約束功能表的 CommandIDGets the CommandID for the breakpoint constraints menu. 此欄位為唯讀。This field is read-only.

BreakpointHitCountMenu BreakpointHitCountMenu BreakpointHitCountMenu BreakpointHitCountMenu

取得中斷點叫用次數 (Hit Count) 功能表的 CommandIDGets the CommandID for the breakpoint hit count menu. 此欄位為唯讀。This field is read-only.

BreakpointLocationMenu BreakpointLocationMenu BreakpointLocationMenu BreakpointLocationMenu

取得中斷點位置功能表的 CommandIDGets the CommandID for the breakpoint location menu. 此欄位為唯讀。This field is read-only.

ChangeTheme ChangeTheme ChangeTheme ChangeTheme

取得變更主題功能表的 CommandIDGets the CommandID for the change theme menu. 此欄位為唯讀。This field is read-only.

ClearBreakpointsMenu ClearBreakpointsMenu ClearBreakpointsMenu ClearBreakpointsMenu

CommandID,可用來存取清除中斷點功能表。A CommandID that can be used to access the clear breakpoints menu. 此欄位為唯讀。This field is read-only.

Collapse Collapse Collapse Collapse

CommandID,可用於存取摺疊功能表。A CommandID that can be used to access the collapse menu. 此欄位為唯讀。This field is read-only.

CopyToClipboard CopyToClipboard CopyToClipboard CopyToClipboard

CommandID,可用於存取複製功能表。A CommandID that can be used to access the copy menu. 此欄位為唯讀。This field is read-only.

CreateTheme CreateTheme CreateTheme CreateTheme

CommandID,可用於存取建立主題功能表。A CommandID that can be used to access the create theme menu. 此欄位為唯讀。This field is read-only.

DebugCommandSetId DebugCommandSetId DebugCommandSetId DebugCommandSetId

提供偵錯命令集的唯一識別碼。Provides a unique identifier for the debug command set. 此欄位為唯讀。This field is read-only.

DebugStepBranchMenu DebugStepBranchMenu DebugStepBranchMenu DebugStepBranchMenu

CommandID,可用來存取偵錯步驟的分支功能表。A CommandID that can be used to access the debug step branch menu. 此欄位為唯讀。This field is read-only.

DebugStepInstanceMenu DebugStepInstanceMenu DebugStepInstanceMenu DebugStepInstanceMenu

CommandID,可用來存取偵錯步驟執行個體功能表。A CommandID that can be used to access the debug step instance menu. 此欄位為唯讀。This field is read-only.

DebugWorkflowGroupId DebugWorkflowGroupId DebugWorkflowGroupId DebugWorkflowGroupId

提供功能表的偵錯工作流程群組的唯一識別碼。Provides a unique identifier for the debug workflow group of menus. 此欄位為唯讀。This field is read-only.

DefaultFilter DefaultFilter DefaultFilter DefaultFilter

CommandID,可用於存取預設篩選條件功能表。A CommandID that can be used to access the default filter menu. 此欄位為唯讀。This field is read-only.

DefaultPage DefaultPage DefaultPage DefaultPage

CommandID,可用於存取預設頁面功能表。A CommandID that can be used to access the default page menu. 此欄位為唯讀。This field is read-only.

DesignerActionsMenu DesignerActionsMenu DesignerActionsMenu DesignerActionsMenu

CommandID,可用來存取設計工具動作功能表。A CommandID that can be used to access the designer actions menu. 此欄位為唯讀。This field is read-only.

DesignerProperties DesignerProperties DesignerProperties DesignerProperties

CommandID,可用來存取設計工具屬性功能表。A CommandID that can be used to access the designer properties menu. 此欄位為唯讀。This field is read-only.

Disable Disable Disable Disable

CommandID,可用於存取停用功能表。A CommandID that can be used to access the disable menu. 此欄位為唯讀。This field is read-only.

Enable Enable Enable Enable

CommandID,可用於存取啟用功能表。A CommandID that can be used to access the enable menu. 此欄位為唯讀。This field is read-only.

EnableBreakpointMenu EnableBreakpointMenu EnableBreakpointMenu EnableBreakpointMenu

CommandID,可用來存取啟用中斷點功能表。A CommandID that can be used to access the enable breakpoint menu. 此欄位為唯讀。This field is read-only.

ExecutionStateMenu ExecutionStateMenu ExecutionStateMenu ExecutionStateMenu

CommandID,可用來存取執行狀態功能表。A CommandID that can be used to access the execution state menu. 此欄位為唯讀。This field is read-only.

Expand Expand Expand Expand

CommandID,可用於存取展開功能表。A CommandID that can be used to access the expand menu. 此欄位為唯讀。This field is read-only.

FirstZoomCommand FirstZoomCommand FirstZoomCommand FirstZoomCommand

CommandID,可用來存取縮放為第一級的功能表。A CommandID that can be used to access the zoom first menu. 此欄位為唯讀。This field is read-only.

GotoDisassemblyMenu GotoDisassemblyMenu GotoDisassemblyMenu GotoDisassemblyMenu

CommandID,可用來存取 goto 反組譯碼功能表。A CommandID that can be used to access the goto disassembly menu. 此欄位為唯讀。This field is read-only.

InsertBreakpointMenu InsertBreakpointMenu InsertBreakpointMenu InsertBreakpointMenu

CommandID,可用來存取插入中斷點功能表。A CommandID that can be used to access the insert breakpoint menu. 此欄位為唯讀。This field is read-only.

InsertTracePointMenu InsertTracePointMenu InsertTracePointMenu InsertTracePointMenu

CommandID,可用來存取插入追蹤點功能表。A CommandID that can be used to access the insert tracepoint menu. 此欄位為唯讀。This field is read-only.

LastZoomCommand LastZoomCommand LastZoomCommand LastZoomCommand

CommandID,可用來存取縮放為最後一級的功能表。A CommandID that can be used to access the zoom last menu. 此欄位為唯讀。This field is read-only.

MenuGuid MenuGuid MenuGuid MenuGuid

提供功能表的唯一識別碼。Provides a unique identifier for the menu. 此欄位為唯讀。This field is read-only.

NewDataBreakpointMenu NewDataBreakpointMenu NewDataBreakpointMenu NewDataBreakpointMenu

CommandID,可用來存取新資料中斷點功能表。A CommandID that can be used to access the new data breakpoint menu. 此欄位為唯讀。This field is read-only.

NewFileTracePointMenu NewFileTracePointMenu NewFileTracePointMenu NewFileTracePointMenu

CommandID,可用來存取新檔案追蹤點功能表。A CommandID that can be used to access the new file tracepoint menu. 此欄位為唯讀。This field is read-only.

PageDown PageDown PageDown PageDown

CommandID,可用於存取 PageDown 功能表。A CommandID that can be used to access the PageDown menu. 此欄位為唯讀。This field is read-only.

PageLayoutMenu PageLayoutMenu PageLayoutMenu PageLayoutMenu

CommandID,可用於存取頁面配置功能表。A CommandID that can be used to access the page layout menu. 此欄位為唯讀。This field is read-only.

PageSetup PageSetup PageSetup PageSetup

CommandID,可用於存取版面設定功能表。A CommandID that can be used to access the page setup menu. 此欄位為唯讀。This field is read-only.

PageUp PageUp PageUp PageUp

CommandID,可用於存取 PageUp 功能表。A CommandID that can be used to access the PageUp menu. 此欄位為唯讀。This field is read-only.

Pan Pan Pan Pan

CommandID,可用於存取捲動功能表。A CommandID that can be used to access the pan menu. 此欄位為唯讀。This field is read-only.

PanMenu PanMenu PanMenu PanMenu

CommandID,可用於存取捲動功能表。A CommandID that can be used to access the pan menu. 此欄位為唯讀。This field is read-only.

Print Print Print Print

CommandID,可用於存取列印功能表。A CommandID that can be used to access the print menu. 此欄位為唯讀。This field is read-only.

PrintPreview PrintPreview PrintPreview PrintPreview

CommandID,可用於存取預覽列印功能表。A CommandID that can be used to access the print preview menu. 此欄位為唯讀。This field is read-only.

PrintPreviewPage PrintPreviewPage PrintPreviewPage PrintPreviewPage

CommandID,可用於存取列印預覽頁面功能表。A CommandID that can be used to access the print preview page menu. 此欄位為唯讀。This field is read-only.

RunToCursorMenu RunToCursorMenu RunToCursorMenu RunToCursorMenu

CommandID,可用於存取執行至游標處功能表。A CommandID that can be used to access the run to cursor menu. 此欄位為唯讀。This field is read-only.

SaveAsImage SaveAsImage SaveAsImage SaveAsImage

CommandID,可用來存取儲存為影像功能表。A CommandID that can be used to access the save as image menu. 此欄位為唯讀。This field is read-only.

SelectionMenu SelectionMenu SelectionMenu SelectionMenu

可用於存取選取功能表的 CommandIDA CommandID that can be used to access the selection menu. 此欄位為唯讀。This field is read-only.

SetNextStatementMenu SetNextStatementMenu SetNextStatementMenu SetNextStatementMenu

CommandID,可用來存取設定下一個陳述式功能表。A CommandID that can be used to access the set next statement menu. 此欄位為唯讀。This field is read-only.

ShowAll ShowAll ShowAll ShowAll

CommandID,可用於存取全部顯示功能表。A CommandID that can be used to access the show all menu. 此欄位為唯讀。This field is read-only.

ShowNextStatementMenu ShowNextStatementMenu ShowNextStatementMenu ShowNextStatementMenu

CommandID,可用來存取顯示下一個陳述式功能表。A CommandID that can be used to access the show next statement menu. 此欄位為唯讀。This field is read-only.

ToggleBreakpointMenu ToggleBreakpointMenu ToggleBreakpointMenu ToggleBreakpointMenu

CommandID,可用來存取切換中斷點功能表。A CommandID that can be used to access the toggle breakpoint menu. 此欄位為唯讀。This field is read-only.

VerbGroupActions VerbGroupActions VerbGroupActions VerbGroupActions

CommandID,可用來存取動詞群組動作功能表。A CommandID that can be used to access the verb group actions menu. 此欄位為唯讀。This field is read-only.

VerbGroupDesignerActions VerbGroupDesignerActions VerbGroupDesignerActions VerbGroupDesignerActions

CommandID,可用來存取動詞群組設計工具動作功能表。A CommandID that can be used to access the verb group designer actions menu. 此欄位為唯讀。This field is read-only.

VerbGroupEdit VerbGroupEdit VerbGroupEdit VerbGroupEdit

CommandID,可用來存取編輯動詞群組功能表。A CommandID that can be used to access the edit verb group menu. 此欄位為唯讀。This field is read-only.

VerbGroupGeneral VerbGroupGeneral VerbGroupGeneral VerbGroupGeneral

CommandID,可用來存取一般動詞群組功能表。A CommandID that can be used to access the general verb group menu. 此欄位為唯讀。This field is read-only.

VerbGroupMisc VerbGroupMisc VerbGroupMisc VerbGroupMisc

CommandID,可用來存取其他動詞群組功能表。A CommandID that can be used to access the miscellaneous verb group menu. 此欄位為唯讀。This field is read-only.

VerbGroupOptions VerbGroupOptions VerbGroupOptions VerbGroupOptions

CommandID,可用來存取選項動詞群組功能表。A CommandID that can be used to access the options verb group menu. 此欄位為唯讀。This field is read-only.

VerbGroupView VerbGroupView VerbGroupView VerbGroupView

CommandID,可用來存取檢視動詞群組功能表。A CommandID that can be used to access the view verb group menu. 此欄位為唯讀。This field is read-only.

WorkflowCommandSetId WorkflowCommandSetId WorkflowCommandSetId WorkflowCommandSetId

提供工作流程命令集的唯一識別碼。Provides a unique identifier for the workflow command set. 此欄位為唯讀。This field is read-only.

WorkflowToolBar WorkflowToolBar WorkflowToolBar WorkflowToolBar

CommandID,可用來存取工作流程工具列功能表。A CommandID that can be used to access the workflow toolbar menu. 此欄位為唯讀。This field is read-only.

Zoom100Mode Zoom100Mode Zoom100Mode Zoom100Mode

CommandID,可用來存取縮放 100% 功能表。A CommandID that can be used to access the zoom 100% menu. 此欄位為唯讀。This field is read-only.

Zoom150Mode Zoom150Mode Zoom150Mode Zoom150Mode

CommandID,可用來存取縮放 150% 功能表。A CommandID that can be used to access the zoom 150% menu. 此欄位為唯讀。This field is read-only.

Zoom200Mode Zoom200Mode Zoom200Mode Zoom200Mode

CommandID,可用來存取縮放 200% 功能表。A CommandID that can be used to access the zoom 200% menu. 此欄位為唯讀。This field is read-only.

Zoom300Mode Zoom300Mode Zoom300Mode Zoom300Mode

CommandID,可用來存取縮放 300% 功能表。A CommandID that can be used to access the zoom 300% menu. 此欄位為唯讀。This field is read-only.

Zoom400Mode Zoom400Mode Zoom400Mode Zoom400Mode

CommandID,可用來存取縮放 400% 功能表。A CommandID that can be used to access the zoom 400% menu. 此欄位為唯讀。This field is read-only.

Zoom50Mode Zoom50Mode Zoom50Mode Zoom50Mode

CommandID,可用來存取縮放 50% 功能表。A CommandID that can be used to access the zoom 50% menu. 此欄位為唯讀。This field is read-only.

Zoom75Mode Zoom75Mode Zoom75Mode Zoom75Mode

CommandID,可用來存取縮放 75% 功能表。A CommandID that can be used to access the zoom 75% menu. 此欄位為唯讀。This field is read-only.

ZoomIn ZoomIn ZoomIn ZoomIn

CommandID,可用來存取放大功能表。A CommandID that can be used to access the zoom in menu. 此欄位為唯讀。This field is read-only.

ZoomLevelCombo ZoomLevelCombo ZoomLevelCombo ZoomLevelCombo

CommandID,可用來存取縮放層級下拉式功能表。A CommandID that can be used to access the zoom level combo menu. 此欄位為唯讀。This field is read-only.

ZoomLevelListHandler ZoomLevelListHandler ZoomLevelListHandler ZoomLevelListHandler

CommandID,可用來存取縮放層級清單處理常式功能表。A CommandID that can be used to access the zoom level list handler menu. 此欄位為唯讀。This field is read-only.

ZoomMenu ZoomMenu ZoomMenu ZoomMenu

CommandID,可用來存取縮放功能表。A CommandID that can be used to access the zoom menu. 此欄位為唯讀。This field is read-only.

ZoomOut ZoomOut ZoomOut ZoomOut

CommandID,可用來存取縮小功能表。A CommandID that can be used to access the zoom out menu. 此欄位為唯讀。This field is read-only.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於