API Reference
Class
HtmlCssNamespaceContext
Immutable stylesheet-scoped namespace bindings for CSS selectors.
Inheritance
- Object
- HtmlCssNamespaceContext
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Constructors
public HtmlCssNamespaceContext(String defaultNamespaceUri = null, IReadOnlyDictionary<String, String> prefixes = null) #Creates namespace bindings. A null default leaves unprefixed type selectors namespace-unconstrained.
Parameters
- defaultNamespaceUri System.String = null
- prefixes System.Collections.Generic.IReadOnlyDictionary{System.String,System.String} = null
Methods
public static HtmlCssNamespaceContext FromStyleSheet(HtmlCssStyleSheet styleSheet) #Returns:
HtmlCssNamespaceContextReads valid top-level @namespace declarations from an owned stylesheet.
Parameters
- styleSheet OfficeIMO.Html.Css.HtmlCssStyleSheet
public Boolean TryGetNamespaceUri(String prefix, out String namespaceUri) #Returns:
BooleanResolves a case-sensitive namespace prefix.
Parameters
- prefix System.String
- namespaceUri System.String@