4 writes to _gradientStops
Microsoft.Maui.Graphics (4)
GradientPaint.cs (4)
21
_gradientStops
= new PaintGradientStop[source.GradientStops.Length];
33
_gradientStops
= value;
36
_gradientStops
= new[] { new PaintGradientStop(0, Colors.White), new PaintGradientStop(1, Colors.White) };
128
_gradientStops
= new PaintGradientStop[stopCount];
22 references to _gradientStops
Microsoft.Maui.Graphics (22)
GradientPaint.cs (22)
23
for (var i = 0; i <
_gradientStops
.Length; i++)
24
_gradientStops
[i] = new PaintGradientStop(source.GradientStops[i]);
30
get =>
_gradientStops
;
35
if (
_gradientStops
== null ||
_gradientStops
.Length == 0)
42
get =>
_gradientStops
[StartColorIndex].Color;
46
_gradientStops
[startColorIndex].Color = value ?? Colors.White;
52
get =>
_gradientStops
[EndColorIndex].Color;
56
_gradientStops
[endColorIndex].Color = value ?? Colors.White;
67
for (var i = 0; i <
_gradientStops
.Length; i++)
69
if (
_gradientStops
[i].Offset <= offset)
72
offset =
_gradientStops
[i].Offset;
87
for (var i = 0; i <
_gradientStops
.Length; i++)
89
if (
_gradientStops
[i].Offset >= offset)
92
offset =
_gradientStops
[i].Offset;
96
return index >= 0 ? index :
_gradientStops
.Length - 1;
118
var vStops = new PaintGradientStop[
_gradientStops
.Length];
119
Array.Copy(
_gradientStops
, vStops,
_gradientStops
.Length);
132
_gradientStops
[p] = new PaintGradientStop(offsets[p], colors[p]);
237
if (
_gradientStops
== null ||
_gradientStops
.Length < 2)