Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 3
0
 public QueryBuilderEditorPartOptions(TextEditorCommonType commonType) : base(commonType)
 {
 }