# LatexArgument

Required or optional command argument.

Class 

`OfficeIMO.Latex`

**Namespace**

`OfficeIMO.Latex`

**Assembly**

`OfficeIMO.Latex`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Implements**

`ILatexSourceEdit`

**Modifiers**

sealed

Required or optional command argument.

## Inheritance

- object
- LatexArgument

## Usage

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

- Method [LatexCommand.GetOptionalArgument](/api/latex/officeimo-latex-latexcommand/#method-getoptionalargument-int32)
- Method [LatexCommand.GetRequiredArgument](/api/latex/officeimo-latex-latexcommand/#method-getrequiredargument-int32)
- Property [LatexCommand.Arguments](/api/latex/officeimo-latex-latexcommand/#property-arguments)
- Property [LatexFootnote.Body](/api/latex/officeimo-latex-latexfootnote/#property-body)

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

Lossless argument syntax, including an unbraced single token.

`public bool IsOptional { get; }` [#](#property-isoptional)

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

True for square-bracket optional arguments.

`public bool IsSingleToken { get; }` [#](#property-issingletoken)

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

True when the original required argument is one unbraced TeX token. Edited content is written in braces.

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

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

True for a bound single token or a group with its closing delimiter.

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

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

Content span excluding delimiters.

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

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

Argument content excluding delimiters.

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

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

True when content changed.

<!-- PowerForge markdown artifact sha256:295BBAC322CD69234418BD7344FC7C56B9E26AAE9900F49541D1161649AA7EBE -->
