Class
HtmlCssNamespaceContext
OfficeIMO.Html.Css
Immutable stylesheet-scoped namespace bindings for CSS selectors.
Inheritance
- object
- HtmlCssNamespaceContext
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
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 string? = null
- prefixes System.Collections.Generic.IReadOnlyDictionary<string, string>? = null
Methods
public static HtmlCssNamespaceContext FromStyleSheet(HtmlCssStyleSheet styleSheet) #Reads valid top-level @namespace declarations from an owned stylesheet.
Parameters
- styleSheet OfficeIMO.Html.Css.HtmlCssStyleSheet
Returns
HtmlCssNamespaceContextpublic bool TryGetNamespaceUri(string prefix, out string namespaceUri) #Resolves a case-sensitive namespace prefix.
Parameters
- prefix string
- namespaceUri string
Returns
bool