[]
Represents a list of gradient stops.
public class GradientStopList : FormattingBagList<GradientStop>, IReadOnlyList<GradientStop>, IReadOnlyCollection<GradientStop>, IEnumerable<GradientStop>, IEnumerable
Adds a new gradient stop in the color band.
public GradientStop Add(ThemeColorId themeColor, float position)
themeColor
ThemeColorIdThe gradient stop theme color id.
position
floatThe gradient stop position in the color band.
The added GradientStop.
Adds a new gradient stop in the color band.
public GradientStop Add(Color color, float position)
color
System.Drawing.ColorThe gradient stop color.
position
floatThe gradient stop position in the color band.
The added GradientStop.
public override bool Equals(object fmt)
fmt
objectpublic override int GetHashCode()
Inserts a new gradient stop in the color band.
public GradientStop Insert(ThemeColorId themeColor, float position, int index)
themeColor
ThemeColorIdThe gradient stop theme color id.
position
floatThe gradient stop position in the color band.
index
intThe gradient stop index.
The inserted GradientStop.
Inserts a new gradient stop in the color band.
public GradientStop Insert(Color color, float position, int index)
color
System.Drawing.ColorThe gradient stop color.
position
floatThe gradient stop position in the color band.
index
intThe gradient stop index.
The inserted GradientStop.
Removes the gradient stop from the color band.
public override void Remove(int index)
index
intThe gradient stop index in the list.