Beispiel #1
0
 /// <summary>
 /// Metoda zajistí velikost MinWidth a vrátí zaokrouhlený interval
 /// </summary>
 /// <param name="range"></param>
 /// <param name="minWidth"></param>
 /// <returns></returns>
 protected static Int32Range ResizeRangeToMinWidth(DoubleRange range, double minWidth)
 {
     if (minWidth > 0 && range.Size < minWidth)
     {
         range = range.ZoomToSize(range.Center, minWidth);
     }
     return(range.Int32RoundEnd);
 }