public TextEditorPartOptions(TextEditorCommonType commonType) { switch (commonType) { case TextEditorCommonType.SingleLine: this.TextMode = TextBoxMode.SingleLine; this.Rows = 1; this.Columns = 30; break; case TextEditorCommonType.MultiLine: this.TextMode = TextBoxMode.MultiLine; this.Rows = 10; this.Columns = 30; break; case TextEditorCommonType.MiddleSize: this.TextMode = TextBoxMode.MultiLine; this.Rows = 4; this.Columns = 30; break; case TextEditorCommonType.Small: this.TextMode = TextBoxMode.SingleLine; this.Columns = 10; this.MaxLength = 10; break; } }
public QueryBuilderEditorPartOptions(TextEditorCommonType commonType) : base(commonType) { }