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

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

作者:.NET开发    项目:System.Workflow.ComponentModel.Desig   
internal void Expand(bool expand)
{
    IDesignerHost host = GetService(typeof(IDesignerHost)) as IDesignerHost;
    if (host == null)
        return;

    this.SuspendLayout();

    CompositeActivity root = host.RootComponent as CompositeActivity;
    foreach (Activity activity in root.Activities)
    {
        CompositeActivityDesigner compositeActivityDesigner = host.GetDesigner((IComponent)activity) as CompositeActivityDesigner;
        if (compositeActivityDesigner != null)
        {
            compositeActivityDesigner.Expanded = expand;
        }
    }

    this.ResumeLayout(true);
}


问题


面经


文章

微信
公众号

扫码关注公众号