本文整理汇总了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;
}
示例2: TextInput
public TextInput(IDocument document, string value, string description)
{
_document = document;
_node = document.CreateNode("text-input", "text");
Value = value;
Description = description;
}
示例3: VariableSet
public VariableSet(IDocument document, VariableDecl variableDeclaration, string value)
{
_document = document;
_node = document.CreateNode("variable-set", "text");
VariableDeclaration = variableDeclaration;
Value = value;
}
示例4: ODFOption
/// <summary>
/// Creates an ODFOption
/// </summary>
/// <param name="document">Main document</param>
public ODFOption(IDocument document)
{
Document = document;
Node = document.CreateNode("option", "form");
}
示例5: ODFGridColumn
/// <summary>
/// Creates an ODFGridColumn
/// </summary>
/// <param name="document">Main document</param>
public ODFGridColumn(IDocument document)
{
Document = document;
Node = document.CreateNode("column", "form");
}
示例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;
}
示例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;
}
示例8: PageNumber
public PageNumber(IDocument document, int pageAdjustment)
{
_document = document;
_node = document.CreateNode("page-number", "text");
PageAdjustment = pageAdjustment;
}
示例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;
}
示例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;
}
示例11: DateField
public DateField(IDocument document)
{
_document = document;
_node = document.CreateNode("date", "text");
}