System.Xml.Xsl.XsltOld.HtmlElementProps.GetProps C# (CSharp) Method

GetProps() static public method

static public GetProps ( string name ) : HtmlElementProps
name string
return HtmlElementProps
        static public  HtmlElementProps GetProps(string name) {
            HtmlElementProps result = (HtmlElementProps) s_table[name];
            return result;
            // We can do this but in case of Xml/Html mixed output this doesn't have big sence.
//            return result != null ?  result : s_otherElements;            
        }

Usage Example

Ejemplo n.º 1
0
        public BeginEvent(Compiler compiler)
        {
            NavigatorInput input = compiler.Input;

            Debug.Assert(input != null);
            Debug.Assert(input.NodeType != XPathNodeType.Namespace);
            _nodeType     = input.NodeType;
            _namespaceUri = input.NamespaceURI;
            _name         = input.LocalName;
            _prefix       = input.Prefix;
            _empty        = input.IsEmptyTag;
            if (_nodeType == XPathNodeType.Element)
            {
                _htmlProps = HtmlElementProps.GetProps(_name);
            }
            else if (_nodeType == XPathNodeType.Attribute)
            {
                _htmlProps = HtmlAttributeProps.GetProps(_name);
            }
        }
All Usage Examples Of System.Xml.Xsl.XsltOld.HtmlElementProps::GetProps
HtmlElementProps