# CslStyle

An immutable parsed CSL style. Styles and their parent aliases are resolved from caller-supplied data.

Class 

`OfficeIMO.Bibliography`

**Namespace**

`OfficeIMO.Bibliography`

**Assembly**

`OfficeIMO.Bibliography`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[CslStyle.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Bibliography/Citations/CslStyle.cs#L74)

**Modifiers**

sealed

An immutable parsed CSL style. Styles and their parent aliases are resolved from caller-supplied data.

## Inheritance

- object
- CslStyle

## 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 1

- Method [CslStyle.Parse](/api/bibliography/officeimo-bibliography-cslstyle/#method-parse-string-officeimo-bibliography-cslstyleloadoptions-threading-cancellationtoken)

### Accepted by parameters 1

- Constructor [CslProcessor.CslProcessor](/api/bibliography/officeimo-bibliography-cslprocessor/#constructor-ctor-officeimo-bibliography-bibliographydocument-officeimo-bibliography-cslstyle-officeimo-bibliography-cslrenderoptions-threading-cancellationtoken) parameter `style`

Filter members 

Show inherited

## Methods

`public static CslStyle Parse(string xml, CslStyleLoadOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-parse-string-officeimo-bibliography-cslstyleloadoptions-threading-cancellationtoken)

[CslStyle.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Bibliography/Citations/CslStyle.cs#L74)

Parses bounded CSL XML, prohibits external entities, resolves local parent styles, and rejects recursive macros.

Parameters

**xml string required**

**options OfficeIMO.Bibliography.CslStyleLoadOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`CslStyle`

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

## Properties

`public string Id { get; }` [#](#property-id)

[CslStyle.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Bibliography/Citations/CslStyle.cs#L48)

Style identifier from its metadata.

`public string Title { get; }` [#](#property-title)

[CslStyle.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Bibliography/Citations/CslStyle.cs#L50)

Style title from its metadata.

`public string DefaultLocale { get; }` [#](#property-defaultlocale)

[CslStyle.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Bibliography/Citations/CslStyle.cs#L52)

Effective default language dialect, including a dependent style override.

`public bool IsNoteStyle { get; }` [#](#property-isnotestyle)

[CslStyle.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.Bibliography/Citations/CslStyle.cs#L54)

Whether citations are intended for notes.

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