protected virtual void ModifyEditor(TextFieldBase tb) { if (MaxLength > 0) tb.MaxLength = MaxLength; if (Width > 0) tb.Width = Width; if (Height > 0) tb.Height = Height; }