alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ChartExtensionUtils

    Contains Chart extension methods.

    Inheritance
    System.Object
    ChartExtensionUtils
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public static class ChartExtensionUtils

    Methods

    DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)

    Returns distinct elements from a sequence by using a specified key selector.

    Declaration
    public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<TSource> source
    System.Func<TSource, TKey> keySelector
    Returns
    Type
    System.Collections.Generic.IEnumerable<TSource>
    Type Parameters
    Name
    TSource
    TKey

    FromOADate(Double)

    Returns a DateTime equivalent to the specified OLE Automation Date.

    Declaration
    public static DateTime FromOADate(this double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    System.DateTime

    Max(IEnumerable<ChartSeriesBase>, Func<ChartSeriesBase, Double>)

    Declaration
    public static ChartSeriesBase Max(this IEnumerable<ChartSeriesBase> source, Func<ChartSeriesBase, double> selector)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ChartSeriesBase> source
    System.Func<ChartSeriesBase, System.Double> selector
    Returns
    Type
    ChartSeriesBase

    SetStrokeDashArray(UIElementsRecycler<Line>)

    Sets the StrokeDashArray for each Lines in the specified lineRecycler.

    Declaration
    public static void SetStrokeDashArray(UIElementsRecycler<Line> lineRecycler)
    Parameters
    Type Name Description
    UIElementsRecycler<System.Windows.Shapes.Line> lineRecycler
    Remarks

    This method works around a known framework bug where applying StrokeDashArray via style only affects the first line element.

    Sum(IEnumerable<DoubleRange>)

    Returns sum of DoubleRange

    Declaration
    public static DoubleRange Sum(this IEnumerable<DoubleRange> ranges)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<DoubleRange> ranges

    Collection of DoubleRange

    Returns
    Type
    DoubleRange

    ToOADate(DateTime)

    Converts the value of this instance to the equivalent OLE Automation date.

    Declaration
    public static double ToOADate(this DateTime time)
    Parameters
    Type Name Description
    System.DateTime time
    Returns
    Type
    System.Double
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved