私はいくつかのMSチャートを作成しました。以下のコードは私のアプリケーションから抽出されました。正常に動作しています。ラベルのフォントサイズを大きくしたいのですが。ラベルのフォントサイズを変更するにはどうすればよいですか?
ありがとう。
Series MIN = Chart2.Series.Add("Minimum");
MIN.Points.DataBindXY(listVersion, MIN_list[j]);
MIN.ChartType = SeriesChartType.Line;
MIN.Color = Color.Red;
MIN.BorderWidth = 3;
MIN.IsValueShownAsLabel = true;
MIN.LabelBackColor = System.Drawing.Color.Red;
MIN.LabelForeColor = System.Drawing.Color.White;
Font
それぞれに個別に変更できますDataPoint
:
MIN.Points[0].Font = new System.Drawing.Font("Consolas", 10f);
MIN.Points[1].Font = new System.Drawing.Font("Consolas", 12f);
MIN.Points[2].Font = new System.Drawing.Font("Consolas", 14f);
またはFont
、すべて Labels
のシリーズのを変更できます。
MIN.Font = new System.Drawing.Font("Times", 16f);
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加