private void TextFont_Click(object sender, System.EventArgs e) { NTextStyle textStyleResult; if (NTextStyleTypeEditor.Edit(m_DataLabelStyle.TextStyle, out textStyleResult)) { m_DataLabelStyle.TextStyle = textStyleResult; nChartControl1.Refresh(); } }
private void ThirdTextStyleButton_Click(object sender, System.EventArgs e) { NTextStyle textStyleResult; if (NTextStyleTypeEditor.Edit(m_Bar3.Legend.TextStyle, out textStyleResult)) { m_Bar3.Legend.TextStyle = textStyleResult; nChartControl1.Refresh(); } }
private void LegendFooterFontButton_Click(object sender, System.EventArgs e) { NTextStyle textStyleResult; if (NTextStyleTypeEditor.Edit(m_Legend.Footer.TextStyle, out textStyleResult)) { m_Legend.Footer.TextStyle = textStyleResult; nChartControl1.Refresh(); } }
private void HeaderTextStyleButton_Click(object sender, System.EventArgs e) { NTextStyle textStyle; if (NTextStyleTypeEditor.Edit(m_Header.TextStyle, false, out textStyle)) { m_Header.TextStyle = textStyle; nChartControl1.Refresh(); } }
private void ThirdRowTextStyleButton_Click(object sender, EventArgs e) { NValueTimelineScaleConfigurator valueTimelineScale = m_Chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator as NValueTimelineScaleConfigurator; NTextStyle result = null; if (NTextStyleTypeEditor.Edit(valueTimelineScale.ThirdRow.LabelStyle.TextStyle, out result)) { valueTimelineScale.ThirdRow.LabelStyle.TextStyle = result; nChartControl1.Refresh(); } }
private void XTitleStyleButton_Click(object sender, System.EventArgs e) { NStandardScaleConfigurator scaleConfigurator = (NStandardScaleConfigurator)m_Chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator; NTextStyle textStyleResult; if (NTextStyleTypeEditor.Edit(scaleConfigurator.Title.TextStyle, out textStyleResult)) { scaleConfigurator.Title.TextStyle = textStyleResult; nChartControl1.Refresh(); } }
private void BottomAxisTextStyleButton_Click(object sender, EventArgs e) { NAxisConstLine cl = (NAxisConstLine)m_Chart.Axis(StandardAxis.PrimaryX).ConstLines[0]; NTextStyle textStyle; if (NTextStyleTypeEditor.Edit(cl.TextStyle, out textStyle)) { cl.TextStyle = textStyle; nChartControl1.Refresh(); } }
private void BottomTitleTextStyleButton_Click(object sender, EventArgs e) { NAxisStripe stripe = (NAxisStripe)m_Chart.Axis(StandardAxis.PrimaryX).Stripes[0]; NTextStyle textStyle; if (NTextStyleTypeEditor.Edit(stripe.TextStyle, out textStyle)) { stripe.TextStyle = textStyle; nChartControl1.Refresh(); } }
private void HeaderTextStyleButton_Click(object sender, EventArgs e) { NStyleSheet styleSheet = (NStyleSheet)document.StyleSheets.GetChildByName(NDR.NameFrameDecoratorHeadersStyleSheet); NTextStyle textStyle; if (NTextStyleTypeEditor.Edit(styleSheet.Style.TextStyle, out textStyle)) { styleSheet.Style.TextStyle = textStyle; document.SmartRefreshAllViews(); } }
/// <summary> /// Shows the text style edtior for the specified styleable node /// </summary> /// <param name="styleable"></param> protected void ShowTextStyleEditor(INStyleable styleable) { if (styleable == null) { return; } NTextStyle textStyle = styleable.ComposeTextStyle(); NTextStyle newTextStyle = null; if (NTextStyleTypeEditor.Edit(textStyle, textStyle != NStyle.GetTextStyle(styleable), out newTextStyle)) { NStyle.SetTextStyle(styleable, newTextStyle); document.SmartRefreshAllViews(); } }
private void TextStyleButton_Click(object sender, System.EventArgs e) { NChart chart = nChartControl1.Charts[0]; NLineStudy lineStudy = chart.Series[0] as NLineStudy; if (lineStudy == null) { return; } NTextStyle textStyleResult; if (NTextStyleTypeEditor.Edit(lineStudy.TextStyle, out textStyleResult)) { lineStudy.TextStyle = textStyleResult; nChartControl1.Refresh(); } }