vb System.Workflow.ComponentModel.Design.CompositeActivityDesigner.Expanded类(方法)实例源码

下面列出了vb System.Workflow.ComponentModel.Design.CompositeActivityDesigner.Expanded 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.Workflow.ComponentModel.Desig   
Friend Sub Expand(ByVal expand As Boolean)
    Dim host As IDesignerHost = GetService(GetType(IDesignerHost))
    If host Is Nothing Then
        Return
    End If

    Me.SuspendLayout()

    Dim root As CompositeActivity = host.RootComponent
    Dim activity As Activity
    For Each activity In root.Activities
        Dim compositeActivityDesigner As CompositeActivityDesigner = host.GetDesigner(CType(activity, IComponent))
        If compositeActivityDesigner IsNot Nothing Then
            compositeActivityDesigner.Expanded = expand
        End If
    Next

    Me.ResumeLayout(True)
End Sub


问题


面经


文章

微信
公众号

扫码关注公众号