本文整理匯總了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); }