CreateControlView() public method

public CreateControlView ( Control controlToAdd ) : MonoReports.ControlView.ControlViewBase
controlToAdd MonoReports.Model.Controls.Control
return MonoReports.ControlView.ControlViewBase
Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
        public override void CreateNewControl(SectionView sectionView)
        {
            var startPoint = sectionView.PointInSectionByAbsolutePoint (designService.StartPressPoint.X, designService.StartPressPoint.Y);

            var tb = new TextBlock { Location = new MonoReports.Model.Point (startPoint.X, startPoint.Y), Text="text", FontName="Helvetica", FontSize=11, Size = new Size(70,14) };

            TextBlockView textBlockView = sectionView.CreateControlView (tb) as TextBlockView;

            sectionView.Section.Controls.Add (tb);
            textBlockView.ParentSection = sectionView;
            designService.SelectedControl = textBlockView;
        }
Ejemplo n.º 3
0
        public override void CreateNewControl(SectionView sectionView)
        {
            var startPoint = sectionView.PointInSectionByAbsolutePoint (designService.StartPressPoint.X, designService.StartPressPoint.Y);

            var l = createLine(startPoint.X,startPoint.Y);
            var lineView = sectionView.CreateControlView (l);
            sectionView.Section.Controls.Add (l);
            lineView.ParentSection = sectionView;
            designService.SelectedControl = lineView;
        }
Ejemplo n.º 4
0
        public override void CreateNewControl(SectionView sectionView)
        {
            var startPoint = sectionView.PointInSectionByAbsolutePoint (designService.StartPressPoint.X, designService.StartPressPoint.Y);

            var subreport = new SubReport {
                Location = new MonoReports.Model.Point (startPoint.X, startPoint.Y),
                Size = new Size(50,20),
                BackgroundColor = new MonoReports.Model.Color(0.5,0.5,0.5)
            };
            SubreportView subreportView = sectionView.CreateControlView (subreport) as SubreportView;
            sectionView.Section.Controls.Add (subreport);
            subreportView.ParentSection = sectionView;
            designService.SelectedControl = subreportView;
        }