示例#1
0
 public Drawing(Size size, DrawingFunc func)
 {
     if (func == null) {
         throw new ArgumentNullException ("func");
     }
     this.size = size;
     this.func = func;
 }
示例#2
0
 public Drawing(Size size, DrawingFunc func)
 {
     if (func == null)
     {
         throw new ArgumentNullException("func");
     }
     this.size = size;
     this.func = func;
 }
示例#3
0
		public Drawing (Size size, DrawingFunc func, IPlatform textPlatform)
		{
			if (func == null) {
				throw new ArgumentNullException ("func");
			}
			this.size = size;
			this.func = func;
			this.textPlatform = textPlatform ?? new NullPlatform ();
		}
示例#4
0
 public Drawing(Size size, DrawingFunc func, IPlatform textPlatform)
 {
     if (func == null)
     {
         throw new ArgumentNullException("func");
     }
     this.size         = size;
     this.func         = func;
     this.textPlatform = textPlatform ?? new NullPlatform();
 }