MonoReports.ControlView.SectionView.CreateControlView C# (CSharp) Method

CreateControlView() public method

public CreateControlView ( Control controlToAdd ) : MonoReports.ControlView.ControlViewBase
controlToAdd MonoReports.Model.Controls.Control
return MonoReports.ControlView.ControlViewBase
        public ControlViewBase CreateControlView(Control controlToAdd)
        {
            var controlView = controlViewFactory.CreateControlView (controlToAdd, this);
            AddControlView (controlView);
            return controlView;
        }

Usage Example

Example #1
0
        public override void CreateNewControl(SectionView sectionView)
        {
            var startPoint = sectionView.PointInSectionByAbsolutePoint (designService.StartPressPoint.X, designService.StartPressPoint.Y);

            MonoReports.Model.Controls.Image img = new MonoReports.Model.Controls.Image(){ Location = new MonoReports.Model.Point (startPoint.X, startPoint.Y), Width = 50, Height=50};
            ImageView imageView = sectionView.CreateControlView (img) as ImageView;
            sectionView.Section.Controls.Add (img);
            imageView.ParentSection = sectionView;
            designService.SelectedControl = imageView;
        }
All Usage Examples Of MonoReports.ControlView.SectionView::CreateControlView