Beispiel #1
0
 public TextAlign(HorAlign horAlign, VerAlign verAlign)
     : this()
 {
     if ((int)horAlign < -1 || (int)horAlign > 1)
         throw new ArgumentOutOfRangeException("horAlign");
     if ((int)verAlign < -1 || (int)verAlign > 1)
         throw new ArgumentOutOfRangeException("verAlign");
     HorAlign = horAlign;
     VerAlign = verAlign;
 }
Beispiel #2
0
 public TextAlign(HorAlign horAlign, VerAlign verAlign) : this()
 {
     if ((int)horAlign < -1 || (int)horAlign > 1)
     {
         throw new ArgumentOutOfRangeException("horAlign");
     }
     if ((int)verAlign < -1 || (int)verAlign > 1)
     {
         throw new ArgumentOutOfRangeException("verAlign");
     }
     HorAlign = horAlign;
     VerAlign = verAlign;
 }