コード例 #1
0
		protected override TextBox CreateEditor()
		{
			FreeTextArea fta = new FreeTextArea();

			fta.EditorMode = editorMode;
			fta.AdditionalFormats = additionalFormats;
			fta.UseStylesSet = useStylesSet;

			return fta;
		}
コード例 #2
0
ファイル: EditManagerTests.cs プロジェクト: spmason/n2cms
        protected static Dictionary<string, Control> CreateEditorsForComplexContainersItem()
        {
            Dictionary<string, Control> editors = new Dictionary<string, Control>();

            editors["MyProperty0"] = new TextBox();
            editors["MyProperty1"] = new TextBox();
            editors["MyProperty2"] = new TextBox();
            editors["MyProperty3"] = new FreeTextArea();
            editors["MyProperty4"] = new CheckBox();

            ((TextBox)editors["MyProperty0"]).Text = "one";
            ((TextBox)editors["MyProperty1"]).Text = "two";
            ((TextBox)editors["MyProperty2"]).Text = "three";
            ((FreeTextArea)editors["MyProperty3"]).Text = "rock";
            ((CheckBox)editors["MyProperty4"]).Checked = true;

            return editors;
        }
コード例 #3
0
ファイル: FreeTextAreaTests.cs プロジェクト: nicklv/n2cms
        public void Should_Return_Tokens_For_Autocomplete()
        {
            var textbox = new FreeTextArea();


        }