# LatexCommand

Source-backed LaTeX command without macro execution.

Class 

`OfficeIMO.Latex`

**Namespace**

`OfficeIMO.Latex`

**Assembly**

`OfficeIMO.Latex`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

sealed

Source-backed LaTeX command without macro execution.

## Inheritance

- object
- LatexCommand

## Usage

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

- Property [LatexCitation.Command](/api/latex/officeimo-latex-latexcitation/#property-command)
- Property [LatexDocument.Commands](/api/latex/officeimo-latex-latexdocument/#property-commands)
- Property [LatexDocument.DocumentClassCommand](/api/latex/officeimo-latex-latexdocument/#property-documentclasscommand)
- Property [LatexEnvironment.BeginCommand](/api/latex/officeimo-latex-latexenvironment/#property-begincommand)
- Property [LatexEnvironment.EndCommand](/api/latex/officeimo-latex-latexenvironment/#property-endcommand)
- Property [LatexFigure.CaptionCommand](/api/latex/officeimo-latex-latexfigure/#property-captioncommand)
- Property [LatexFigure.LabelCommand](/api/latex/officeimo-latex-latexfigure/#property-labelcommand)
- Property [LatexFootnote.Command](/api/latex/officeimo-latex-latexfootnote/#property-command)
- Property [LatexHeading.Command](/api/latex/officeimo-latex-latexheading/#property-command)
- Property [LatexImage.Command](/api/latex/officeimo-latex-lateximage/#property-command)
- Property [LatexLabel.Command](/api/latex/officeimo-latex-latexlabel/#property-command)
- Property [LatexListItem.ItemCommand](/api/latex/officeimo-latex-latexlistitem/#property-itemcommand)
- Property [LatexMacroDefinition.Command](/api/latex/officeimo-latex-latexmacrodefinition/#property-command)
- Property [LatexReference.Command](/api/latex/officeimo-latex-latexreference/#property-command)
- Property [LatexTheorem.LabelCommand](/api/latex/officeimo-latex-latextheorem/#property-labelcommand)

Filter members 

Show inherited

## Methods

`public LatexArgument? GetOptionalArgument(int index)` [#](#method-getoptionalargument-int32)

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

Returns the optional argument at a zero-based optional-only index.

Parameters

**index int required**

Returns

`LatexArgument?`

`public LatexArgument? GetRequiredArgument(int index)` [#](#method-getrequiredargument-int32)

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

Returns the required argument at a zero-based required-only index.

Parameters

**index int required**

Returns

`LatexArgument?`

## 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:77](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Model/LatexSemanticModel.cs#L77)

Lossless command syntax.

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

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

Command name without leading backslash.

`public IReadOnlyList<LatexArgument> Arguments { get; }` [#](#property-arguments)

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

Bound optional and required arguments in source order.

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

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

True when the OfficeIMO profile assigns semantics to the command.

`public bool IsStarred { get; }` [#](#property-isstarred)

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

True when a recognized starred command modifier immediately follows the control word.

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

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

True when any argument changed.

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