/// <summary> /// 全选 /// </summary> public void SelectAll() { var allComponents = this.Blocks.Cast <IModelingDesignerComponent>().Union(this.Relations); var allDesignerControls = allComponents.Select(d => d.EngineControl as IDesignerCanvasItemInternal).ToArray(); _canvas.AddSelection(false, allDesignerControls); }