コード例 #1
0
 public static RadialGradient StretchTo(this RadialGradient gradient, RadialGradientStretch stretch)
 {
     gradient.Stretch = stretch;
     return(gradient);
 }
コード例 #2
0
 public static bool IsSide(this RadialGradientStretch stretch) => (int)stretch % 2 != 0;
コード例 #3
0
 public static bool IsCorner(this RadialGradientStretch stretch) => (int)stretch % 2 == 0;
コード例 #4
0
 public static bool IsFarthest(this RadialGradientStretch stretch) => (int)stretch >= 3;
コード例 #5
0
 public static bool IsClosest(this RadialGradientStretch stretch) => (int)stretch < 3;
コード例 #6
0
 public RadialGradientBuilder StretchTo(RadialGradientStretch stretch)
 {
     Stretch = stretch;
     return(this);
 }