示例#1
0
 private void CreateWordElements()
 {
     string[] strArray = this.Text.Split(new char[] { ' ' });
     if (strArray.Length != 0)
     {
         this._wordElements = new ArrayList();
         bool flag = true;
         foreach (string str in strArray)
         {
             if (!flag)
             {
                 TextElement element = new TextElement(" ");
                 element.SetLogicalElement(this);
                 this._wordElements.Add(element);
             }
             TextElement element2 = new TextElement(str);
             element2.SetLogicalElement(this);
             this._wordElements.Add(element2);
             flag = false;
         }
     }
 }
示例#2
0
 protected virtual void GenerateDocumentation(Element documentationContainer)
 {
     TextElement element = new TextElement("[Doc-comment support is not yet implemented.]");
     element.ForeColor = Color.Gray;
     documentationContainer.Elements.Add(element);
 }
示例#3
0
 public TextElement AddText(string text, string name)
 {
     TextElement element = new TextElement(text);
     this.AddElement(element, name);
     return element;
 }