WEB开发网      婵傜晫鐝總钘夊瀻娴滎偓绱掓担鐘垫畱娑撯偓娴犺棄鍨庢禍顐fЦ閹存垳婊戦惃鍕娴犺棄濮╅崝娑崇幢鐠囧嘲鍨庢禍锟� ---閿曪拷
开发学院软件开发C语言 C#进行Visio二次开发之组合形状操作 阅读

C#进行Visio二次开发之组合形状操作

 2010-09-30 22:45:23 来源:WEB开发网 閵嗭拷閸戝繐鐨€涙ぞ缍�婢х偛銇囩€涙ぞ缍�閵嗭拷  閸忚櫕鏁炵拫閿嬪€嶉柨瀵告畱瀵邦喖宕�
核心提示: SubMacro1()DimUndoScopeID1AsLongUndoScopeID1=Application.BeginUndoScope("移动对象")ActiveWindow.DeselectAllActiveWindow.SelectApplication.Acti

Sub Macro1()
    Dim UndoScopeID1 As Long
    UndoScopeID1 = Application.BeginUndoScope("移动对象")
    ActiveWindow.DeselectAll
    ActiveWindow.Select Application.ActiveWindow.Page.Shapes.ItemFromID(60), visSubSelect
    Application.ActiveWindow.Selection.Move 0.405512, -0#
    ActiveWindow.Selection.RemoveFromGroup
    Application.EndUndoScope UndoScopeID1, True
    ActiveWindow.DeselectAll
    ActiveWindow.Select Application.ActiveWindow.Page.Shapes.ItemFromID(25), visSubSelect
    Application.ActiveWindow.Selection.Move 0.314961, -0#
    Dim UndoScopeID2 As Long
    UndoScopeID2 = Application.BeginUndoScope("移动对象")
    ActiveWindow.DeselectAll
    ActiveWindow.Select Application.ActiveWindow.Page.Shapes.ItemFromID(60), visSelect
    Application.ActiveWindow.Selection.Move -0.688976, 0#
    ActiveWindow.DeselectAll
    ActiveWindow.Select Application.ActiveWindow.Page.Shapes.ItemFromID(22), visSelect
    ActiveWindow.Select Application.ActiveWindow.Page.Shapes.ItemFromID(60), visSelect
    ActiveWindow.Selection.AddToGroup
    Application.EndUndoScope UndoScopeID2, True
End Sub

上一页  1 2 3 4  下一页

Tags:进行 Visio 二次

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接