예제 #1
0
        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;
            }
        }
예제 #2
0
 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;
     }
 }
예제 #3
0
 public QueryBuilderEditorPartOptions(TextEditorCommonType commonType) : base(commonType)
 {
 }