Source/NFX.WinForms/Controls/ChartKit/Temporal/Series.cs
/// <summary>
/// Returns the maximum width of one sample extracted from all views
/// </summary>
Returns the maximum width of one sample extracted from all views
Returns the maximum width of one sample extracted from all views
public int GetMaxSampleWidth(bool includeChildren = true)
    {
      if (!this.m_Visible) return 0;
      var result = m_Views.Where(v => v.Visible).DefaultIfEmpty().Max( v => v!=null? v.SampleWidth : 0 );
      if (!includeChildren) return result;
      return Math.Max(result, m_Children.DefaultIfEmpty().Max( cv =>  cv!=null? cv.GetMaxSampleWidth(true) : 0));
    }
public int GetMaxSampleWidth ( bool includeChildren = true ) { if ( ! this . m_Visible ) return 0 ; var result = m_Views . Where ( v => v . Visible ) . DefaultIfEmpty ( ) . Max ( v => v != null ? v . SampleWidth : 0 ) ; if ( ! includeChildren ) return result ; return Math . Max ( result , m_Children . DefaultIfEmpty ( ) . Max ( cv => cv != null ? cv . GetMaxSampleWidth ( true ) : 0 ) ) ; }
Returns the maximum width of one sample extracted from all views
Returns the maximum width of one sample extracted from all views
includeChildren
bool