From f589894c84d47b9671eef6d3a8337b6b51b32edb Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 21 一月 2025 12:15:39 +0800 Subject: [PATCH] 阀门视图修改 --- WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-view/PumpViewChart.Designer.cs | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-view/PumpViewChart.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-view/PumpViewChart.Designer.cs index 1bf5539..4b1d274 100644 --- a/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-view/PumpViewChart.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Phart.Core/01-pump/01-view/PumpViewChart.Designer.cs @@ -28,6 +28,9 @@ /// </summary> private void InitializeComponent() { + DevExpress.XtraCharts.TextAnnotation textAnnotation1 = new DevExpress.XtraCharts.TextAnnotation(); + DevExpress.XtraCharts.ChartAnchorPoint chartAnchorPoint1 = new DevExpress.XtraCharts.ChartAnchorPoint(); + DevExpress.XtraCharts.RelativePosition relativePosition1 = new DevExpress.XtraCharts.RelativePosition(); DevExpress.XtraCharts.XYDiagram xyDiagram1 = new DevExpress.XtraCharts.XYDiagram(); DevExpress.XtraCharts.ConstantLine constantLine1 = new DevExpress.XtraCharts.ConstantLine(); DevExpress.XtraCharts.ConstantLine constantLine2 = new DevExpress.XtraCharts.ConstantLine(); @@ -46,6 +49,7 @@ chartControl1 = new DevExpress.XtraCharts.ChartControl(); bar1 = new DevExpress.XtraBars.Bar(); ((System.ComponentModel.ISupportInitialize)chartControl1).BeginInit(); + ((System.ComponentModel.ISupportInitialize)textAnnotation1).BeginInit(); ((System.ComponentModel.ISupportInitialize)xyDiagram1).BeginInit(); ((System.ComponentModel.ISupportInitialize)constantLine1).BeginInit(); ((System.ComponentModel.ISupportInitialize)constantLine2).BeginInit(); @@ -62,6 +66,15 @@ // // chartControl1 // + chartAnchorPoint1.X = 200; + chartAnchorPoint1.Y = 200; + textAnnotation1.AnchorPoint = chartAnchorPoint1; + textAnnotation1.AnnotationID = 0; + textAnnotation1.AutoHeight = true; + textAnnotation1.AutoWidth = true; + textAnnotation1.Name = "Annotation 1"; + textAnnotation1.ShapePosition = relativePosition1; + chartControl1.AnnotationRepository.AddRange(new DevExpress.XtraCharts.Annotation[] { textAnnotation1 }); chartControl1.BorderOptions.Visibility = DevExpress.Utils.DefaultBoolean.False; constantLine1.AxisValueSerializable = "1"; constantLine1.ConstantLineID = 0; @@ -174,6 +187,7 @@ Controls.Add(chartControl1); Name = "PumpViewChart"; Size = new Size(1023, 857); + ((System.ComponentModel.ISupportInitialize)textAnnotation1).EndInit(); ((System.ComponentModel.ISupportInitialize)constantLine1).EndInit(); ((System.ComponentModel.ISupportInitialize)constantLine2).EndInit(); ((System.ComponentModel.ISupportInitialize)xyDiagramPane1).EndInit(); -- Gitblit v1.9.3