更新Demo
This commit is contained in:
parent
27ea7d7d99
commit
95260be5b3
Binary file not shown.
@ -112,6 +112,9 @@ namespace Sunny.UI.Demo
|
||||
option.Title.SubText = "LineChart";
|
||||
var series = option.AddSeries(new UILineSeries("Line1"));
|
||||
|
||||
//设置曲线显示最大点数,超过后自动清理
|
||||
series.SetMaxCount(50);
|
||||
|
||||
//坐标轴显示小数位数
|
||||
option.XAxis.AxisLabel.DecimalPlaces = 1;
|
||||
option.YAxis.AxisLabel.DecimalPlaces = 1;
|
||||
|
20
SunnyUI.Demo/Controls/FDataGridView.Designer.cs
generated
20
SunnyUI.Demo/Controls/FDataGridView.Designer.cs
generated
@ -45,7 +45,6 @@ namespace Sunny.UI.Demo
|
||||
//
|
||||
this.uiDataGridViewFooter1.DataGridView = this.uiDataGridView1;
|
||||
this.uiDataGridViewFooter1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.uiDataGridViewFooter1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiDataGridViewFooter1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiDataGridViewFooter1.Location = new System.Drawing.Point(0, 386);
|
||||
this.uiDataGridViewFooter1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
@ -56,12 +55,16 @@ namespace Sunny.UI.Demo
|
||||
this.uiDataGridViewFooter1.Size = new System.Drawing.Size(800, 29);
|
||||
this.uiDataGridViewFooter1.TabIndex = 5;
|
||||
this.uiDataGridViewFooter1.Text = "uiDataGridViewFooter1";
|
||||
this.uiDataGridViewFooter1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiDataGridView1
|
||||
//
|
||||
this.uiDataGridView1.AllowUserToAddRows = false;
|
||||
this.uiDataGridView1.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.uiDataGridView1.BackgroundColor = System.Drawing.Color.White;
|
||||
this.uiDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.uiDataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
|
||||
@ -83,7 +86,7 @@ namespace Sunny.UI.Demo
|
||||
this.uiDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.uiDataGridView1.EnableHeadersVisualStyles = false;
|
||||
this.uiDataGridView1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiDataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
|
||||
this.uiDataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255)))));
|
||||
this.uiDataGridView1.Location = new System.Drawing.Point(0, 35);
|
||||
this.uiDataGridView1.Name = "uiDataGridView1";
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
@ -91,9 +94,10 @@ namespace Sunny.UI.Demo
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.White;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.uiDataGridView1.RowHeadersVisible = false;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
@ -101,18 +105,18 @@ namespace Sunny.UI.Demo
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
|
||||
this.uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.uiDataGridView1.RowTemplate.Height = 23;
|
||||
this.uiDataGridView1.ScrollBarHandleWidth = 40;
|
||||
this.uiDataGridView1.ScrollBarRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
|
||||
this.uiDataGridView1.SelectedIndex = -1;
|
||||
this.uiDataGridView1.Size = new System.Drawing.Size(800, 351);
|
||||
this.uiDataGridView1.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiDataGridView1.TabIndex = 6;
|
||||
this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiPagination1
|
||||
//
|
||||
this.uiPagination1.ActivePage = 20;
|
||||
this.uiPagination1.CausesValidation = false;
|
||||
this.uiPagination1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.uiPagination1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiPagination1.FillColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
|
||||
this.uiPagination1.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiPagination1.Location = new System.Drawing.Point(0, 415);
|
||||
this.uiPagination1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
@ -122,11 +126,13 @@ namespace Sunny.UI.Demo
|
||||
this.uiPagination1.PageSize = 50;
|
||||
this.uiPagination1.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
|
||||
this.uiPagination1.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
|
||||
this.uiPagination1.ShowText = false;
|
||||
this.uiPagination1.Size = new System.Drawing.Size(800, 35);
|
||||
this.uiPagination1.TabIndex = 4;
|
||||
this.uiPagination1.Text = "uiDataGridPage1";
|
||||
this.uiPagination1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiPagination1.TotalCount = 40000;
|
||||
this.uiPagination1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
this.uiPagination1.PageChanged += new Sunny.UI.UIPagination.OnPageChangeEventHandler(this.uiPagination1_PageChanged);
|
||||
//
|
||||
// FDataGridView
|
||||
|
@ -16,9 +16,6 @@ namespace Sunny.UI.Demo
|
||||
uiDataGridView1.AddColumn("Column3", "Column3");
|
||||
uiDataGridView1.AddColumn("Column4", "Column4");
|
||||
|
||||
//SunnyUI常用的初始化配置,看个人喜好用或者不用。
|
||||
uiDataGridView1.Init();
|
||||
|
||||
for (int i = 0; i < 3610; i++)
|
||||
{
|
||||
Data data = new Data();
|
||||
|
27
SunnyUI.Demo/Controls/FFlowLayoutPanel.Designer.cs
generated
27
SunnyUI.Demo/Controls/FFlowLayoutPanel.Designer.cs
generated
@ -33,6 +33,7 @@ namespace Sunny.UI.Demo
|
||||
this.uiFlowLayoutPanel1 = new Sunny.UI.UIFlowLayoutPanel();
|
||||
this.uiButton2 = new Sunny.UI.UIButton();
|
||||
this.uiButton3 = new Sunny.UI.UIButton();
|
||||
this.uiButton4 = new Sunny.UI.UIButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// uiButton1
|
||||
@ -45,6 +46,8 @@ namespace Sunny.UI.Demo
|
||||
this.uiButton1.Size = new System.Drawing.Size(100, 35);
|
||||
this.uiButton1.TabIndex = 11;
|
||||
this.uiButton1.Text = "增加";
|
||||
this.uiButton1.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click);
|
||||
//
|
||||
// uiFlowLayoutPanel1
|
||||
@ -55,21 +58,25 @@ namespace Sunny.UI.Demo
|
||||
this.uiFlowLayoutPanel1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiFlowLayoutPanel1.Name = "uiFlowLayoutPanel1";
|
||||
this.uiFlowLayoutPanel1.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.uiFlowLayoutPanel1.ShowText = false;
|
||||
this.uiFlowLayoutPanel1.Size = new System.Drawing.Size(354, 390);
|
||||
this.uiFlowLayoutPanel1.TabIndex = 10;
|
||||
this.uiFlowLayoutPanel1.Text = "`";
|
||||
this.uiFlowLayoutPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
this.uiFlowLayoutPanel1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiButton2
|
||||
//
|
||||
this.uiButton2.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.uiButton2.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiButton2.Location = new System.Drawing.Point(284, 462);
|
||||
this.uiButton2.Location = new System.Drawing.Point(408, 462);
|
||||
this.uiButton2.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiButton2.Name = "uiButton2";
|
||||
this.uiButton2.Size = new System.Drawing.Size(100, 35);
|
||||
this.uiButton2.TabIndex = 12;
|
||||
this.uiButton2.Text = "清除";
|
||||
this.uiButton2.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
this.uiButton2.Click += new System.EventHandler(this.uiButton2_Click);
|
||||
//
|
||||
// uiButton3
|
||||
@ -83,13 +90,30 @@ namespace Sunny.UI.Demo
|
||||
this.uiButton3.Size = new System.Drawing.Size(100, 35);
|
||||
this.uiButton3.TabIndex = 13;
|
||||
this.uiButton3.Text = "移除";
|
||||
this.uiButton3.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click);
|
||||
//
|
||||
// uiButton4
|
||||
//
|
||||
this.uiButton4.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.uiButton4.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiButton4.Location = new System.Drawing.Point(284, 462);
|
||||
this.uiButton4.MinimumSize = new System.Drawing.Size(1, 1);
|
||||
this.uiButton4.Name = "uiButton4";
|
||||
this.uiButton4.Size = new System.Drawing.Size(100, 35);
|
||||
this.uiButton4.TabIndex = 14;
|
||||
this.uiButton4.Text = "获取";
|
||||
this.uiButton4.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiButton4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
this.uiButton4.Click += new System.EventHandler(this.uiButton4_Click);
|
||||
//
|
||||
// FFlowLayoutPanel
|
||||
//
|
||||
this.AllowShowTitle = true;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(800, 539);
|
||||
this.Controls.Add(this.uiButton4);
|
||||
this.Controls.Add(this.uiButton3);
|
||||
this.Controls.Add(this.uiButton2);
|
||||
this.Controls.Add(this.uiButton1);
|
||||
@ -109,5 +133,6 @@ namespace Sunny.UI.Demo
|
||||
private UIFlowLayoutPanel uiFlowLayoutPanel1;
|
||||
private UIButton uiButton2;
|
||||
private UIButton uiButton3;
|
||||
private UIButton uiButton4;
|
||||
}
|
||||
}
|
@ -26,11 +26,15 @@
|
||||
btn = new UIButton();
|
||||
btn.SetDPIScale();
|
||||
btn.Text = "Button" + index++.ToString("D2");
|
||||
//btn.Click += Btn_Click;
|
||||
btn.Name = btn.Text;
|
||||
btn.Click += Btn_Click;
|
||||
|
||||
//建议用封装的方法Add
|
||||
uiFlowLayoutPanel1.Add(btn);
|
||||
//也可以用原生方法Controls.Add(不推荐)
|
||||
//或者Panel.Controls.Add
|
||||
//uiFlowLayoutPanel1.Panel.Controls.Add(btn);
|
||||
|
||||
//不能用原生方法Controls.Add
|
||||
//uiFlowLayoutPanel1.Controls.Add(btn);
|
||||
|
||||
uiButton3.Enabled = true;
|
||||
@ -49,6 +53,9 @@
|
||||
//或者用
|
||||
//uiFlowLayoutPanel1.Panel.Controls.Clear();
|
||||
|
||||
//不能用原生方法Controls.Clear
|
||||
//uiFlowLayoutPanel1.Controls.Clear();
|
||||
|
||||
uiButton3.Enabled = false;
|
||||
}
|
||||
|
||||
@ -61,10 +68,25 @@
|
||||
//或者用
|
||||
//uiFlowLayoutPanel1.Panel.Controls.Remove(btn);
|
||||
|
||||
//不能用原生方法Controls.Remove
|
||||
//uiFlowLayoutPanel1.Controls.Remove(btn);
|
||||
|
||||
btn = null;
|
||||
}
|
||||
|
||||
uiButton3.Enabled = false;
|
||||
}
|
||||
|
||||
private void uiButton4_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
//根据名称获取
|
||||
var btn = uiFlowLayoutPanel1.Get("Button01");
|
||||
|
||||
//通过控件名称索引获取
|
||||
btn = uiFlowLayoutPanel1["Button01"];
|
||||
|
||||
//通过名称和类型获取
|
||||
UIButton button = uiFlowLayoutPanel1.Get<UIButton>("Button01");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
21
SunnyUI.Demo/Controls/FLine.Designer.cs
generated
21
SunnyUI.Demo/Controls/FLine.Designer.cs
generated
@ -55,12 +55,12 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine11.TabIndex = 23;
|
||||
this.uiLine11.Text = "uiLine11";
|
||||
this.uiLine11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.uiLine11.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine10
|
||||
//
|
||||
this.uiLine10.Direction = Sunny.UI.UILine.LineDirection.Vertical;
|
||||
this.uiLine10.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLine10.LineDashStyle = Sunny.UI.UILineDashStyle.None;
|
||||
this.uiLine10.Location = new System.Drawing.Point(521, 55);
|
||||
this.uiLine10.MinimumSize = new System.Drawing.Size(16, 16);
|
||||
this.uiLine10.Name = "uiLine10";
|
||||
@ -68,11 +68,11 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine10.TabIndex = 22;
|
||||
this.uiLine10.Text = "uiLine10";
|
||||
this.uiLine10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.uiLine10.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine7
|
||||
//
|
||||
this.uiLine7.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLine7.LineDashStyle = Sunny.UI.UILineDashStyle.None;
|
||||
this.uiLine7.LineSize = 3;
|
||||
this.uiLine7.Location = new System.Drawing.Point(30, 413);
|
||||
this.uiLine7.MinimumSize = new System.Drawing.Size(16, 16);
|
||||
@ -81,11 +81,11 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine7.TabIndex = 21;
|
||||
this.uiLine7.Text = "文字右下";
|
||||
this.uiLine7.TextAlign = System.Drawing.ContentAlignment.BottomRight;
|
||||
this.uiLine7.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine8
|
||||
//
|
||||
this.uiLine8.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiLine8.LineDashStyle = Sunny.UI.UILineDashStyle.None;
|
||||
this.uiLine8.LineSize = 2;
|
||||
this.uiLine8.Location = new System.Drawing.Point(30, 378);
|
||||
this.uiLine8.MinimumSize = new System.Drawing.Size(16, 16);
|
||||
@ -94,6 +94,7 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine8.TabIndex = 20;
|
||||
this.uiLine8.Text = "文字右中";
|
||||
this.uiLine8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.uiLine8.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine9
|
||||
//
|
||||
@ -106,11 +107,11 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine9.TabIndex = 19;
|
||||
this.uiLine9.Text = "文字右上";
|
||||
this.uiLine9.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||
this.uiLine9.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine4
|
||||
//
|
||||
this.uiLine4.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLine4.LineDashStyle = Sunny.UI.UILineDashStyle.None;
|
||||
this.uiLine4.LineSize = 3;
|
||||
this.uiLine4.Location = new System.Drawing.Point(30, 265);
|
||||
this.uiLine4.MinimumSize = new System.Drawing.Size(16, 16);
|
||||
@ -119,6 +120,7 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine4.TabIndex = 18;
|
||||
this.uiLine4.Text = "文字中下";
|
||||
this.uiLine4.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
|
||||
this.uiLine4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine5
|
||||
//
|
||||
@ -131,11 +133,11 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine5.Size = new System.Drawing.Size(443, 29);
|
||||
this.uiLine5.TabIndex = 17;
|
||||
this.uiLine5.Text = "文字居中";
|
||||
this.uiLine5.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine6
|
||||
//
|
||||
this.uiLine6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLine6.LineDashStyle = Sunny.UI.UILineDashStyle.None;
|
||||
this.uiLine6.Location = new System.Drawing.Point(30, 192);
|
||||
this.uiLine6.MinimumSize = new System.Drawing.Size(16, 16);
|
||||
this.uiLine6.Name = "uiLine6";
|
||||
@ -143,11 +145,12 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine6.TabIndex = 16;
|
||||
this.uiLine6.Text = "文字中上";
|
||||
this.uiLine6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
||||
this.uiLine6.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine3
|
||||
//
|
||||
this.uiLine3.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLine3.LineDashStyle = Sunny.UI.UILineDashStyle.None;
|
||||
this.uiLine3.LineColorGradient = true;
|
||||
this.uiLine3.LineSize = 3;
|
||||
this.uiLine3.Location = new System.Drawing.Point(30, 113);
|
||||
this.uiLine3.MinimumSize = new System.Drawing.Size(16, 16);
|
||||
@ -156,11 +159,11 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine3.TabIndex = 15;
|
||||
this.uiLine3.Text = "文字左下 LineSize=3";
|
||||
this.uiLine3.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
|
||||
this.uiLine3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine2
|
||||
//
|
||||
this.uiLine2.Font = new System.Drawing.Font("微软雅黑", 12F);
|
||||
this.uiLine2.LineDashStyle = Sunny.UI.UILineDashStyle.None;
|
||||
this.uiLine2.LineSize = 2;
|
||||
this.uiLine2.Location = new System.Drawing.Point(30, 78);
|
||||
this.uiLine2.MinimumSize = new System.Drawing.Size(16, 16);
|
||||
@ -169,11 +172,12 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine2.TabIndex = 14;
|
||||
this.uiLine2.Text = "文字左中 LineSize=2";
|
||||
this.uiLine2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.uiLine2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// uiLine1
|
||||
//
|
||||
this.uiLine1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.uiLine1.LineDashStyle = Sunny.UI.UILineDashStyle.None;
|
||||
this.uiLine1.LineColorGradient = true;
|
||||
this.uiLine1.Location = new System.Drawing.Point(30, 55);
|
||||
this.uiLine1.MinimumSize = new System.Drawing.Size(16, 16);
|
||||
this.uiLine1.Name = "uiLine1";
|
||||
@ -181,6 +185,7 @@ namespace Sunny.UI.Demo
|
||||
this.uiLine1.TabIndex = 13;
|
||||
this.uiLine1.Text = "文字左上 LineSize=1";
|
||||
this.uiLine1.TextAlign = System.Drawing.ContentAlignment.TopLeft;
|
||||
this.uiLine1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
|
||||
//
|
||||
// FLine
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user