# HtmlCssSpecificity

Selector specificity retained without exposing a selector-provider type.

Struct 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`3b680b1b6fb1` with working tree changes

**Source**

[HtmlCssCascadeTrace.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L38)

**Base**

`ValueType`

**Implements**

`IEquatable<HtmlCssSpecificity>`

**Modifiers**

sealed

Selector specificity retained without exposing a selector-provider type.

## Inheritance

- ValueType
- HtmlCssSpecificity

## Usage

Explore 3 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 1

- Property [HtmlCssCascadeCandidate.Specificity](/api/html-core/officeimo-html-css-htmlcsscascadecandidate/#property-specificity)

### Accepted by parameters 2

- Constructor [HtmlCssCascadeCandidate.HtmlCssCascadeCandidate](/api/html-core/officeimo-html-css-htmlcsscascadecandidate/#constructor-ctor-string-string-officeimo-html-css-htmlcsscascadesourcekind-officeimo-html-css-htmlcsscascadedecision-boolean-officeimo-html-css-htmlcsspropertyparsestatus-boolean-officeimo-html-css-htmlcssspecificity-int32-int32-string-string) parameter `specificity`
- Method [HtmlCssSpecificity.Equals](/api/html-core/officeimo-html-css-htmlcssspecificity/#method-equals-officeimo-html-css-htmlcssspecificity) parameter `other`

Filter members 

Show inherited

## Constructors

`public HtmlCssSpecificity(int ids, int classes, int types)` [#](#constructor-ctor-int32-int32-int32)

[HtmlCssCascadeTrace.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L38)

Creates an ID/class/type specificity tuple.

Parameters

**ids int required**

**classes int required**

**types int required**

## Methods

Equals 2 overloads

`public bool Equals(HtmlCssSpecificity other)` [#](#method-equals-officeimo-html-css-htmlcssspecificity)

[HtmlCssCascadeTrace.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L46)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.Html.Css.HtmlCssSpecificity required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

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

[HtmlCssCascadeTrace.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L48)

Indicates whether this instance and a specified object are equal.

Parameters

**obj object? required**

The object to compare with the current instance.

Returns

`bool` true if obj and this instance are the same type and represent the same value; otherwise, false.

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

[HtmlCssCascadeTrace.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L50)

Returns the hash code for this instance.

Returns

`int` A 32-bit signed integer that is the hash code for this instance.

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

[HtmlCssCascadeTrace.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L52)

Returns the fully qualified type name of this instance.

Returns

`string` The fully qualified type name.

## Inherited Methods

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

Inherited from object

Returns

`Type`

## Properties

`public int Ids { get; }` [#](#property-ids)

[HtmlCssCascadeTrace.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L40)

ID selector count.

`public int Classes { get; }` [#](#property-classes)

[HtmlCssCascadeTrace.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L42)

Class, attribute and pseudo-class count.

`public int Types { get; }` [#](#property-types)

[HtmlCssCascadeTrace.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/OfficeIMO.Html.Core/Css/HtmlCssCascadeTrace.cs#L44)

Type and pseudo-element count.

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