# HtmlUnsupportedCssException

Thrown when unsupported CSS is encountered while strict CSS handling is enabled.

Class 

`OfficeIMO.Word.Html`

**Namespace**

`OfficeIMO.Word.Html`

**Assembly**

`OfficeIMO.Word.Html`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[HtmlToWordOptions.cs:674](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Word.Html/Options/HtmlToWordOptions.cs#L674)

**Base**

`InvalidOperationException`

**Implements**

`ISerializable`

**Modifiers**

sealed

Thrown when unsupported CSS is encountered while strict CSS handling is enabled.

## Inheritance

- InvalidOperationException
- HtmlUnsupportedCssException

Filter members 

Show inherited

## Constructors

`public HtmlUnsupportedCssException(string code, string message, string source, string? detail = null)` [#](#constructor-ctor-string-string-string-string)

[HtmlToWordOptions.cs:674](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Word.Html/Options/HtmlToWordOptions.cs#L674)

Creates an unsupported CSS exception.

Parameters

**code string required**

Stable diagnostic code associated with the unsupported CSS declaration.

**message string required**

Human-readable message.

**source string required**

HTML element and CSS property associated with the unsupported declaration.

**detail string? = null optional**

Optional unsupported value detail.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual Exception GetBaseException()` [#](#method-getbaseexception)

Inherited from Exception

Returns

`Exception`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public virtual void GetObjectData(SerializationInfo info, StreamingContext context)` [#](#method-getobjectdata-serializationinfo-streamingcontext)

Inherited from Exception

`Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")` `EditorBrowsable(1)`

Parameters

**info SerializationInfo required**

**context StreamingContext required**

`public Type GetType()` [#](#method-gettype)

Inherited from Exception

Returns

`Type`

`public override string ToString()` [#](#method-tostring)

Inherited from Exception

Returns

`string`

## Properties

`public string Code { get; }` [#](#property-code)

[HtmlToWordOptions.cs:683](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Word.Html/Options/HtmlToWordOptions.cs#L683)

Stable diagnostic code associated with the unsupported CSS declaration.

`public string CssSource { get; }` [#](#property-csssource)

[HtmlToWordOptions.cs:688](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Word.Html/Options/HtmlToWordOptions.cs#L688)

HTML element and CSS property associated with the unsupported declaration.

`public string? Detail { get; }` [#](#property-detail)

[HtmlToWordOptions.cs:693](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Word.Html/Options/HtmlToWordOptions.cs#L693)

Optional unsupported value detail.

## Inherited Properties

`public MethodBase? TargetSite { get; }` [#](#property-targetsite)

Inherited from Exception

`public virtual string Message { get; }` [#](#property-message)

Inherited from Exception

`public virtual IDictionary Data { get; }` [#](#property-data)

Inherited from Exception

`public Exception? InnerException { get; }` [#](#property-innerexception)

Inherited from Exception

`public virtual string? HelpLink { get; set; }` [#](#property-helplink)

Inherited from Exception

`public virtual string? Source { get; set; }` [#](#property-source)

Inherited from Exception

`public int HResult { get; set; }` [#](#property-hresult)

Inherited from Exception

`public virtual string? StackTrace { get; }` [#](#property-stacktrace)

Inherited from Exception

<!-- PowerForge markdown artifact sha256:097F187CC3CB0BC49BA4CD9BC09F1246E448A6C3291C64BD00546D64EC897935 -->
