AddText() public method

Adds text into document. Default implementation passes it up the tree.
public AddText ( string text ) : void
text string
return void
Exemplo n.º 1
0
 /// <summary>
 /// Adds text into document. Default implementation passes it up the tree.
 /// </summary>
 public virtual void AddText(string text)
 {
     CheckOpen();
     parent.AddText(text);
 }
Exemplo n.º 2
0
        /*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);
        }