public void Load(IPersistStream stream) { base.Load(stream); _gradient = (ColorGradient)stream.Load("gradient", _gradient, _gradient); _rectType = (GradientRectType)stream.Load("recttype", (int)GradientRectType.Feature); _outlineSymbol = (ISymbol)stream.Load("outlinesymbol"); }
public ColorGradient(ColorGradient gradient) { if (gradient == null) { return; } _col1 = gradient.Color1; _col2 = gradient.Color2; _angle = gradient.Angle; }
public GradientFillSymbol(ColorGradient gradient) { _gradient = new ColorGradient(gradient); }
public GradientFillSymbol() { _gradient = new ColorGradient(ArgbColor.Red, ArgbColor.Blue); _gradient.Angle = 45f; }