Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlCssNamespaceContext

Namespace OfficeIMO.Html.Css
Assembly OfficeIMO.Html.Core
Modifiers sealed

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.

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 optionalposition: 0
prefixes System.Collections.Generic.IReadOnlyDictionary{System.String,System.String} = null optionalposition: 1

Methods

public static HtmlCssNamespaceContext FromStyleSheet(HtmlCssStyleSheet styleSheet) #
Returns: HtmlCssNamespaceContext

Reads valid top-level @namespace declarations from an owned stylesheet.

Parameters

styleSheet OfficeIMO.Html.Css.HtmlCssStyleSheet requiredposition: 0
public Boolean TryGetNamespaceUri(String prefix, out String namespaceUri) #
Returns: Boolean

Resolves a case-sensitive namespace prefix.

Parameters

prefix System.String requiredposition: 0
namespaceUri System.String@ requiredposition: 1

Properties

public String DefaultNamespaceUri { get; } #

The default namespace URI, or null when no default namespace is declared.

public IReadOnlyDictionary<String, String> Prefixes { get; } #

Case-sensitive prefix bindings.