Beispiel #1
0
 public static void AddLinearGradientBrush(this SerializationInfo info, string name, LinearGradientBrush brush)
 {
     info.AddValue(name + BrushTypeSuffix, LinearGradientBrushType);
     info.AddRectangle(name + LinearGradientRectangleSuffix, brush.Rectangle);
     info.AddColor(name + LinearGradientFirstColorSuffix, brush.LinearColors[0]);
     info.AddColor(name + LinearGradientSecondColorSuffix, brush.LinearColors[1]);
 }