本文整理汇总了C#中Altaxo.Data.DataTable.GetPropertyContext方法的典型用法代码示例。如果您正苦于以下问题:C# DataTable.GetPropertyContext方法的具体用法?C# DataTable.GetPropertyContext怎么用?C# DataTable.GetPropertyContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo.Data.DataTable
的用法示例。
在下文中一共展示了DataTable.GetPropertyContext方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreatePlotItems
public static List<IGPlotItem> CreatePlotItems(DataTable table, IAscendingIntegerCollection selectedColumns, G3DPlotStyleCollection templatePlotStyle)
{
var selColumns = new List<DataColumn>(selectedColumns.Count);
foreach (int i in selectedColumns)
selColumns.Add(table[i]);
return CreatePlotItems(selColumns, templatePlotStyle, table.GetPropertyContext());
}
示例2: PlotLine
/// <summary>
/// Plots selected data columns of a table.
/// </summary>
/// <param name="table">The source table.</param>
/// <param name="selectedColumns">The data columns of the table that should be plotted.</param>
/// <param name="bLine">If true, the line style is activated (the points are connected by lines).</param>
/// <param name="bScatter">If true, the scatter style is activated (the points are plotted as symbols).</param>
/// <param name="preferredGraphName">Preferred name of the graph. Can be null if you have no preference.</param>
public static void PlotLine(DataTable table, IAscendingIntegerCollection selectedColumns, bool bLine, bool bScatter, string preferredGraphName)
{
var graph = TemplateWithXYZPlotLayerWithG3DCartesicCoordinateSystem.CreateGraph(table.GetPropertyContext(), preferredGraphName, table.Name, true);
var context = graph.GetPropertyContext();
if (bLine && bScatter)
Plot(table, selectedColumns, graph, PlotStyle_Line_Symbol(context), GroupStyle_Color_Line_Symbol);
else if (bLine)
Plot(table, selectedColumns, graph, PlotStyle_Line(context), GroupStyle_Color_Line);
else
Plot(table, selectedColumns, graph, PlotStyle_Symbol(context), GroupStyle_Color_Symbol);
}