Clone() public method

public Clone ( ) : object
return object
Beispiel #1
0
		public void Clone ()
		{
			using (GraphicsPath gp = new GraphicsPath ()) {
				gp.AddLines (pts_2f);
				using (PathGradientBrush pgb = new PathGradientBrush (gp)) {
					using (PathGradientBrush clone = (PathGradientBrush) pgb.Clone ()) {
						CheckPathDefaults (clone);
						Assert.AreEqual (WrapMode.Clamp, clone.WrapMode, "WrapMode");
					}
				}
			}
		}