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; }
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; }