# LatexEnvironment

Source-backed begin/end LaTeX environment.

Class 

`OfficeIMO.Latex`

**Namespace**

`OfficeIMO.Latex`

**Assembly**

`OfficeIMO.Latex`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[LatexSemanticModel.cs:128](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L128)

**Implements**

`ILatexSourceEdit`

**Modifiers**

sealed

Source-backed begin/end LaTeX environment.

## Inheritance

- object
- LatexEnvironment

## Usage

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

- Property [LatexDocument.Body](/api/latex/officeimo-latex-latexdocument/#property-body)
- Property [LatexDocument.Environments](/api/latex/officeimo-latex-latexdocument/#property-environments)
- Property [LatexFigure.Environment](/api/latex/officeimo-latex-latexfigure/#property-environment)
- Property [LatexList.Environment](/api/latex/officeimo-latex-latexlist/#property-environment)
- Property [LatexMath.Environment](/api/latex/officeimo-latex-latexmath/#property-environment)
- Property [LatexTable.Environment](/api/latex/officeimo-latex-latextable/#property-environment)
- Property [LatexTheorem.Environment](/api/latex/officeimo-latex-latextheorem/#property-environment)

Filter members 

Show inherited

## 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 LatexSyntaxNode Syntax { get; }` [#](#property-syntax)

[LatexSemanticModel.cs:128](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L128)

Lossless environment syntax.

`public string Name { get; }` [#](#property-name)

[LatexSemanticModel.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L130)

Environment name.

`public LatexCommand BeginCommand { get; }` [#](#property-begincommand)

[LatexSemanticModel.cs:132](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L132)

Opening command.

`public LatexCommand? EndCommand { get; }` [#](#property-endcommand)

[LatexSemanticModel.cs:134](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L134)

Closing command, or null when unterminated.

`public bool IsTerminated { get; }` [#](#property-isterminated)

[LatexSemanticModel.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L136)

True when a matching end command exists.

`public LatexSourceSpan ContentSpan { get; }` [#](#property-contentspan)

[LatexSemanticModel.cs:138](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L138)

Content span between begin and end commands.

`public string Content { get; set; }` [#](#property-content)

[LatexSemanticModel.cs:141](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L141)

Exact environment body until edited.

`public bool IsMath { get; }` [#](#property-ismath)

[LatexSemanticModel.cs:150](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L150)

True for a known display math environment.

`public bool IsProfileKnown { get; }` [#](#property-isprofileknown)

[LatexSemanticModel.cs:152](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L152)

True for a known OfficeIMO profile environment.

`public bool IsModified { get; }` [#](#property-ismodified)

[LatexSemanticModel.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L154)

True when body content changed.

<!-- PowerForge markdown artifact sha256:4ADF939420BDAF6FDEAF5F0E48746416689682312E56696E35AF181F44D72AD3 -->
