/// <summary> /// Adds text into document. Default implementation passes it up the tree. /// </summary> public virtual void AddText(string text) { CheckOpen(); parent.AddText(text); }
/*TODO: if only we could get the controlbuilder to build the control like in .NET 2's builder.BuildObject () * ControlBuilder builder = ControlBuilder.CreateBuilderFromType (null, b, tagType, str[1], (string) attributes["ID"], attributes.GetDictionary (null), currentLocation.BeginLine, currentLocation.Filename); * * if (builder == null) * throw new ParseException (currentLocation, "Could not create builder for type " + tagType); * builder.SetServiceProvider (host); * Control c = builder.BuildObject (); */ void ProcessDirective(string tagid, TagAttributes attributes) { string placeholder = document.AddDirective(tagid, attributes.GetDictionary(null)); openObject.AddText(placeholder); }