# HtmlCssMediaContext

Media context used by lightweight CSS analysis in shared HTML conversion workflows.

Enum 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlCssMediaContext.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Styles/HtmlCssMediaContext.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Media context used by lightweight CSS analysis in shared HTML conversion workflows.

## Inheritance

- Enum
- HtmlCssMediaContext

## Usage

Explore 16 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 9

- Property [HtmlComputedStyleOptions.MediaContext](/api/html/officeimo-html-htmlcomputedstyleoptions/#property-mediacontext)
- Field [HtmlCssMediaContext.Print](/api/html/officeimo-html-htmlcssmediacontext/#field-print)
- Field [HtmlCssMediaContext.Screen](/api/html/officeimo-html-htmlcssmediacontext/#field-screen)
- Property [HtmlRenderArchiveManifest.CssMedia](/api/html/officeimo-html-htmlrenderarchivemanifest/#property-cssmedia)
- Property [HtmlRenderOptions.MediaContext](/api/html/officeimo-html-htmlrenderoptions/#property-mediacontext)
- Property [HtmlRenderProfileContract.CssMedia](/api/html/officeimo-html-htmlrenderprofilecontract/#property-cssmedia)
- Property [HtmlRenderRequest.CssMedia](/api/html/officeimo-html-htmlrenderrequest/#property-cssmedia)
- Property [HtmlResourcePipelineOptions.MediaContext](/api/html/officeimo-html-htmlresourcepipelineoptions/#property-mediacontext)
- Property [HtmlResponsiveImageSelectionOptions.MediaContext](/api/html/officeimo-html-htmlresponsiveimageselectionoptions/#property-mediacontext)

### Accepted by parameters 7

- Method [HtmlActiveMediaFilter.Filter](/api/html/officeimo-html-htmlactivemediafilter/#method-filter-string-officeimo-html-htmlcssmediacontext) parameter `mediaContext`
- Method [HtmlComputedStyleEngine.Compute](/api/html/officeimo-html-htmlcomputedstyleengine/#method-compute-string-officeimo-html-htmlcssmediacontext) parameter `mediaContext`
- Method [HtmlComputedStyleEngine.IsApplicableMedia](/api/html/officeimo-html-htmlcomputedstyleengine/#method-isapplicablemedia-string-officeimo-html-htmlcssmediacontext) parameter `mediaContext`
- Method [HtmlConversionDocument.CreateDocumentForConversion](/api/html/officeimo-html-htmlconversiondocument/#method-createdocumentforconversion-officeimo-html-htmlcssmediacontext) parameter `mediaContext`
- Method [HtmlEditableLayoutProjector.Project](/api/html/officeimo-html-htmleditablelayoutprojector/#method-project-officeimo-html-htmlconversiondocument-officeimo-html-htmlrenderoptions-officeimo-html-htmlcssmediacontext-officeimo-html-htmleditablelayoutregionkinds-nullable-system-int32) parameter `mediaContext`
- Method [HtmlRenderRequest.WithAxes](/api/html/officeimo-html-htmlrenderrequest/#method-withaxes-officeimo-html-htmlcssmediacontext-officeimo-html-htmlrenderlayoutsurface-officeimo-html-htmlrenderpaginationpolicy) parameter `cssMedia`
- Method [HtmlRenderRequest.WithCssMedia](/api/html/officeimo-html-htmlrenderrequest/#method-withcssmedia-officeimo-html-htmlcssmediacontext) parameter `cssMedia`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const HtmlCssMediaContext Screen` [#](#field-screen)

[HtmlCssMediaContext.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Styles/HtmlCssMediaContext.cs#L8)

Screen-oriented analysis, matching browser defaults for HTML conversion previews.

Value: `0`

`public const HtmlCssMediaContext Print` [#](#field-print)

[HtmlCssMediaContext.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Styles/HtmlCssMediaContext.cs#L11)

Print-oriented analysis for PDF and high-fidelity print conversion profiles.

Value: `1`

<!-- PowerForge markdown artifact sha256:F18E32F49665755B410572041C28CF670635161952E9ED4F2FA151DD60574121 -->
