当前位置: 首页>>代码示例>>C#>>正文


C# IDocument.CreateNode方法代码示例

本文整理汇总了C#中IDocument.CreateNode方法的典型用法代码示例。如果您正苦于以下问题:C# IDocument.CreateNode方法的具体用法?C# IDocument.CreateNode怎么用?C# IDocument.CreateNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IDocument的用法示例。


在下文中一共展示了IDocument.CreateNode方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Placeholder

 public Placeholder(IDocument document, PlaceholderType placeholderType, string description)
 {
     _document = document;
     _node = document.CreateNode("placeholder", "text");
     PlaceholderType = placeholderType;
     Description = description;
 }
开发者ID:rabidbob,项目名称:aodl-reloaded,代码行数:7,代码来源:Placeholder.cs

示例2: TextInput

 public TextInput(IDocument document, string value, string description)
 {
     _document = document;
     _node = document.CreateNode("text-input", "text");
     Value = value;
     Description = description;
 }
开发者ID:rabidbob,项目名称:aodl-reloaded,代码行数:7,代码来源:TextInput.cs

示例3: VariableSet

 public VariableSet(IDocument document, VariableDecl variableDeclaration, string value)
 {
     _document = document;
     _node = document.CreateNode("variable-set", "text");
     VariableDeclaration = variableDeclaration;
     Value = value;
 }
开发者ID:rabidbob,项目名称:aodl-reloaded,代码行数:7,代码来源:VariableSet.cs

示例4: ODFOption

		/// <summary>
		/// Creates an ODFOption
		/// </summary>
		/// <param name="document">Main document</param>
		public ODFOption(IDocument document)
		{
			Document = document;
			Node = document.CreateNode("option", "form");
		}
开发者ID:monsterlabs,项目名称:HumanRightsTracker,代码行数:9,代码来源:ODFOption.cs

示例5: ODFGridColumn

		/// <summary>
		/// Creates an ODFGridColumn
		/// </summary>
		/// <param name="document">Main document</param>
		public ODFGridColumn(IDocument document)
		{
			Document = document;
			Node = document.CreateNode("column", "form");
		}
开发者ID:rabidbob,项目名称:aodl-reloaded,代码行数:9,代码来源:ODFGridColumn.cs

示例6: VariableDecl

 /// <summary>
 /// Creates an VariableDecl instance
 /// </summary>
 /// <param name="document">The document it belogs to</param>
 /// <param name="valueType">Variable value type</param>
 /// <param name="name">Variable name</param>
 public VariableDecl(IDocument document, VariableValueType valueType, string name)
 {
     Document = document;
     Node = document.CreateNode("variable-decl", "text");
     VariableValueType = valueType;
     Name = name;
 }
开发者ID:monsterlabs,项目名称:HumanRightsTracker,代码行数:13,代码来源:VariableDecl.cs

示例7: ODFItem

		/// <summary>
		/// Creates an ODFItem instance
		/// </summary>
		/// <param name="document">The document it belogs to</param>
		/// <param name="label">Item label</param>
		public ODFItem(IDocument document, string label)
		{
			Document = document;
			Node = document.CreateNode("item", "form");
			Label = label;
		}
开发者ID:rabidbob,项目名称:aodl-reloaded,代码行数:11,代码来源:ODFItem.cs

示例8: PageNumber

		public PageNumber(IDocument document, int pageAdjustment)
		{
			_document = document;
			_node = document.CreateNode("page-number", "text");
			PageAdjustment = pageAdjustment;
		}
开发者ID:monsterlabs,项目名称:HumanRightsTracker,代码行数:6,代码来源:PageNumber.cs

示例9: SingleFormProperty

		/// <summary>
		/// Creates the SingleFormProperty
		/// </summary>
		/// <param name="document">Document containing the form</param>
		/// <param name="PropValueType">Type of the property value</param>
		public SingleFormProperty(IDocument document, PropertyValueType PropValueType)
		{
			Document = document;
			Node = document.CreateNode("property", "form");
			PropertyValueType = PropValueType;
		}
开发者ID:monsterlabs,项目名称:HumanRightsTracker,代码行数:11,代码来源:FormProperties.cs

示例10: ListFormProperty

			/// <summary>
			/// Creates the ListFormProperty
			/// </summary>
			/// <param name="document">Main document</param>
			/// <param name="PropValueType">Property value type</param>
			public ListFormProperty(IDocument document, PropertyValueType PropValueType)
			{
				Document = document;
				Node = document.CreateNode("list-property", "form");
				PropertyValueType = PropValueType;

				_propertyValues = new ListFormPropertyElemCollection();
				_propertyValues.Inserted += PropertyValuesCollection_Inserted;
				_propertyValues.Removed += PropertyValuesCollection_Removed;
			}
开发者ID:monsterlabs,项目名称:HumanRightsTracker,代码行数:15,代码来源:FormProperties.cs

示例11: DateField

		public DateField(IDocument document)
        {
            _document = document;
            _node = document.CreateNode("date", "text");
        }
开发者ID:rabidbob,项目名称:aodl-reloaded,代码行数:5,代码来源:DateField.cs


注:本文中的IDocument.CreateNode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。