System.Xml.Xsl.XsltContext.PreserveWhitespace C# (CSharp) Méthode

PreserveWhitespace() public abstract méthode

public abstract PreserveWhitespace ( XPathNavigator node ) : bool
node XPathNavigator
Résultat bool
        public abstract bool PreserveWhitespace(XPathNavigator node);
        public abstract int CompareDocument (string baseUri, string nextbaseUri);

Usage Example

Exemple #1
0
 internal int getNonWSCount(XsltContext context) {
     if (NonWSCount == 0) {
         for(int i=0; i < _Stk.Count; i++) {
             XPathNavigator nav = _Stk[i] as XPathNavigator;
             if (nav.NodeType != XPathNodeType.Whitespace || context.PreserveWhitespace(nav)) {
                 NonWSCount++;
             }
         }
     }
     return NonWSCount;
 }