本文整理汇总了C#中PlotModel.GetDefaultLineStyle方法的典型用法代码示例。如果您正苦于以下问题:C# PlotModel.GetDefaultLineStyle方法的具体用法?C# PlotModel.GetDefaultLineStyle怎么用?C# PlotModel.GetDefaultLineStyle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlotModel
的用法示例。
在下文中一共展示了PlotModel.GetDefaultLineStyle方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetDefaultValues
/// <summary>
/// Sets default values from the plot model.
/// </summary>
/// <param name="model">The plot model.</param>
protected internal override void SetDefaultValues(PlotModel model)
{
if (this.LineStyle == LineStyle.Automatic)
{
this.defaultLineStyle = model.GetDefaultLineStyle();
}
if (this.Color.IsAutomatic())
{
this.defaultColor = model.GetDefaultColor();
if (this.MarkerFill.IsAutomatic())
{
this.defaultMarkerFill = this.defaultColor;
}
}
}
示例2: SetDefaultValues
/// <summary>
/// The set default values.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
protected internal override void SetDefaultValues(PlotModel model)
{
// todo: should use ActualLineStyle
if (this.Color == null)
{
if (this.LineStyle == LineStyle.Undefined)
{
this.LineStyle = model.GetDefaultLineStyle();
}
this.defaultColor = model.GetDefaultColor();
// And MarkerFill will be overridden if not set to null
if (this.MarkerFill == null)
{
this.MarkerFill = this.defaultColor;
}
}
}
示例3: SetDefaultValues
/// <summary>
/// Sets default values from the plot model.
/// </summary>
/// <param name="model">The plot model.</param>
protected internal override void SetDefaultValues(PlotModel model)
{
if (this.Color.IsAutomatic())
{
this.LineStyle = model.GetDefaultLineStyle();
this.defaultColor = model.GetDefaultColor();
}
}
示例4: SetDefaultValues
/// <summary>
/// The set default values.
/// </summary>
/// <param name="model">
/// The model.
/// </param>
protected internal override void SetDefaultValues(PlotModel model)
{
if (this.Color2 == null)
{
this.LineStyle2 = model.GetDefaultLineStyle();
this.defaultColor2 = model.GetDefaultColor();
}
}
示例5: SetDefaultValues
/// <summary>
/// Sets the default values.
/// </summary>
/// <param name="model">The model.</param>
protected internal override void SetDefaultValues(PlotModel model)
{
base.SetDefaultValues(model);
if (this.ColorLo.IsAutomatic())
{
this.defaultColorLo = model.GetDefaultColor();
}
if (this.LineStyleLo == LineStyle.Automatic)
{
this.LineStyleLo = model.GetDefaultLineStyle();
}
if (this.ColorHi.IsAutomatic())
{
this.defaultColorHi = model.GetDefaultColor();
}
if (this.LineStyleHi == LineStyle.Automatic)
{
this.LineStyleHi = model.GetDefaultLineStyle();
}
}
示例6: SetDefaultValues
/// <summary>
/// Sets the default values.
/// </summary>
/// <param name="model">The model.</param>
protected internal override void SetDefaultValues(PlotModel model)
{
base.SetDefaultValues(model);
if (this.Color2.IsAutomatic())
{
this.defaultColor2 = model.GetDefaultColor();
}
if (this.LineStyle2 == LineStyle.Undefined)
{
this.LineStyle2 = model.GetDefaultLineStyle();
}
}