本文整理汇总了C#中SharpKit.Html.Node类的典型用法代码示例。如果您正苦于以下问题:C# Node类的具体用法?C# Node怎么用?C# Node使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Node类属于SharpKit.Html命名空间,在下文中一共展示了Node类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: walkDomFragment
public void walkDomFragment(Node node, AbstractBehavior parentBehavior = null)
{
investigateNode(node, parentBehavior);
//free this for GC when we are done, it has references to a lot of DOM elements
this.extensionsToBeApplied = null;
}
示例2: walkDomChildren
public void walkDomChildren(Node parentNode, AbstractBehavior parentBehavior = null)
{
//The fact that we have two entry point into here walkChildren and walkDomFragment continues to screw us
walkChildren(parentNode, parentBehavior);
//free this for GC when we are done, it has references to a lot of DOM elements
this.extensionsToBeApplied = null;
}
示例3: walkChildren
public void walkChildren(Node parentNode, InjectionClassBuilder classBuilder, AbstractBehavior parentBehavior = null)
{
var node = parentNode.firstChild;
while (node != null) {
investigateNode(node, classBuilder, parentBehavior);
node = node.nextSibling;
}
}
示例4: investigateTextNode
public void investigateTextNode(Node textNode)
{
//We have a list of matches within the text node which tell us what we need to get
//further we have the original node, which we need to preserve as there may be only parts getting translated
//even though this is bad form <div>[labels.monkey] is a type of [labels.animal]</div> we still need to support it
var result = getElementLocalizationComponents(textNode);
if (result != null) {
for ( int i=0; i<result.length;i++) {
requestTranslation( result[ i ], textNode );
}
scheduleTranslation();
}
}
示例5: compareDocumentPosition
public int compareDocumentPosition(Node other) { return default(int); }
示例6: RandoriApplication
public RandoriApplication(Node rootNode)
{
this.rootNode = rootNode;
}
示例7: isEqualNode
public bool isEqualNode(Node other) { return default(bool); }
示例8: evaluate
public XPathResult evaluate(string expression, Node contextNode, XPathNSResolver resolver, int type, XPathResult inResult) { return default(XPathResult); }
示例9: acceptNode
public short acceptNode(Node nodeArg) { return default(short); }
示例10: replaceChild
public Node replaceChild(Node newChild, Node oldChild) { return default(Node); }
示例11: appendChild
public Node appendChild(Node newChild) { return default(Node); }
示例12: importStylesheet
public void importStylesheet(Node stylesheet) {}
示例13: transformToFragment
public DocumentFragment transformToFragment(Node source, Document docVal) { return default(DocumentFragment); }
示例14: writeToURI
public bool writeToURI(Node nodeArg, string uri) { return default(bool); }
示例15: writeToString
public JsString writeToString(Node nodeArg) { return default(JsString); }