Ejemplo n.º 1
0
		private TextType AddKeyWordProperty(TextType propType, string name, string value, ContentType property)
		{
			if (propType == null)
			{
				propType = new TextType(property);
				m_docText.AddTextType(propType);
			}

			TextNode newNode = new TextNode();
			newNode.AddParent(propType);
			propType.AddChild(newNode);

			newNode.AddInfo(new NodeInfo()
			{
				name = "Name",
				type = DataType.String,
				value = name
			});

			newNode.AddInfo(new NodeInfo()
			{
				name = "Value",
				type = DataType.String,
				value = value
			});

			return propType;
		}
Ejemplo n.º 2
0
        private void FlushText()
        {
	        TextNode newNode = new TextNode();
	        newNode.AddParent(_paraType);
            newNode.AddInfo(new NodeInfo()
                {
                    name = "Content",
                    type = DataType.String,
                    value = _builder.ToString()
                });

	        _paraType.AddChild(newNode);        
	        _iPos += _builder.Length;	        
            _builder.Clear();
        }
Ejemplo n.º 3
0
        private void AddKeyWordProperty(string name, string value)
        {
	        TextType paraType = new TextType(ContentType.WorkshareProperty);
	        _docText.AddTextType(paraType);

	        TextNode newNode = new TextNode();
	        newNode.AddParent(paraType);
	        paraType.AddChild(newNode);

	        newNode.AddInfo(new NodeInfo()
                {	
	                name = "Name",
	                type = DataType.String,
	                value = name
                });

            newNode.AddInfo(new NodeInfo()
                {
                    name = "Value",
                    type = DataType.String,
                    value = value
                });
        }