# OfficeTextParagraphIndent

Describes reusable first-line and continuation-line offsets inside a text frame.

Struct 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeTextParagraphIndent.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L16)

**Base**

`ValueType`

**Implements**

`IEquatable<OfficeTextParagraphIndent>`

**Modifiers**

sealed

Describes reusable first-line and continuation-line offsets inside a text frame.

## Inheritance

- ValueType
- OfficeTextParagraphIndent

## Usage

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

- Property [OfficeDrawingRichText.ParagraphIndent](/api/core/officeimo-drawing-officedrawingrichtext/#property-paragraphindent)
- Property [OfficeDrawingText.ParagraphIndent](/api/core/officeimo-drawing-officedrawingtext/#property-paragraphindent)
- Property [OfficeRichTextParagraph.Indent](/api/core/officeimo-drawing-officerichtextparagraph/#property-indent)
- Property [OfficeRichTextRun.ParagraphIndent](/api/core/officeimo-drawing-officerichtextrun/#property-paragraphindent)
- Method [OfficeTextParagraphIndent.FirstLine](/api/core/officeimo-drawing-officetextparagraphindent/#method-firstline-double)
- Method [OfficeTextParagraphIndent.Hanging](/api/core/officeimo-drawing-officetextparagraphindent/#method-hanging-double)
- Method [OfficeTextParagraphIndent.Scale](/api/core/officeimo-drawing-officetextparagraphindent/#method-scale-double)
- Property [OfficeTextParagraphIndent.Empty](/api/core/officeimo-drawing-officetextparagraphindent/#property-empty)

### Accepted by parameters 20

- Method [OfficeDrawing.AddClippedText](/api/core/officeimo-drawing-officedrawing/#method-addclippedtext-string-double-double-double-double-double-double-officeimo-drawing-officeclippath-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeDrawing.AddRichText](/api/core/officeimo-drawing-officedrawing/#method-addrichtext-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-double-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeDrawing.AddRichTextBehindContent](/api/core/officeimo-drawing-officedrawing/#method-addrichtextbehindcontent-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-double-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeDrawing.AddStyledText](/api/core/officeimo-drawing-officedrawing/#method-addstyledtext-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline) parameter `paragraphIndent`
- Method [OfficeDrawing.AddText](/api/core/officeimo-drawing-officedrawing/#method-addtext-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeDrawing.AddTextBehindContent](/api/core/officeimo-drawing-officedrawing/#method-addtextbehindcontent-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Constructor [OfficeDrawingRichText.OfficeDrawingRichText](/api/core/officeimo-drawing-officedrawingrichtext/#constructor-ctor-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-double-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Constructor [OfficeDrawingText.OfficeDrawingText](/api/core/officeimo-drawing-officedrawingtext/#constructor-ctor-string-double-double-double-double-nullable-officeimo-drawing-officefontinfo-nullable-officeimo-officecolor-officeimo-drawing-officetextalignment-nullable-system-double-officeimo-drawing-officetextverticalalignment-double-nullable-system-double-nullable-system-double-boolean-boolean-boolean-boolean-boolean-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Constructor [OfficeRichTextParagraph.OfficeRichTextParagraph](/api/core/officeimo-drawing-officerichtextparagraph/#constructor-ctor-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-officeimo-drawing-officetextalignment-nullable-system-double-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent-nullable-system-double) parameter `indent`
- Constructor [OfficeRichTextRun.OfficeRichTextRun](/api/core/officeimo-drawing-officerichtextrun/#constructor-ctor-string-double-officeimo-officecolor-boolean-boolean-boolean-string-boolean-nullable-officeimo-officecolor-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextdecorationstyle-officeimo-drawing-officetextbaseline-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeRichTextRun.WithParagraphIndent](/api/core/officeimo-drawing-officerichtextrun/#method-withparagraphindent-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeTextLayoutEngine.FitWrappedText](/api/core/officeimo-drawing-officetextlayoutengine/#method-fitwrappedtext-string-double-double-double-double-double-func-system-string-system-double-system-double-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeTextLayoutEngine.LayoutRichTextBlock](/api/core/officeimo-drawing-officetextlayoutengine/#method-layoutrichtextblock-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-double-double-double-func-system-string-system-double-system-double-boolean-boolean-double-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeTextLayoutEngine.LayoutTextBlock](/api/core/officeimo-drawing-officetextlayoutengine/#method-layouttextblock-string-double-double-double-double-double-func-system-string-system-double-system-double-boolean-boolean-boolean-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeTextLayoutEngine.WrapLines](/api/core/officeimo-drawing-officetextlayoutengine/#method-wraplines-string-double-double-func-system-string-system-double-system-double-nullable-officeimo-drawing-officetextparagraphindent) parameter `paragraphIndent`
- Method [OfficeTextParagraphIndent.Equals](/api/core/officeimo-drawing-officetextparagraphindent/#method-equals-officeimo-drawing-officetextparagraphindent) parameter `other`
- Method [OfficeTextParagraphIndent.op_Equality](/api/core/officeimo-drawing-officetextparagraphindent/#method-op-equality-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextparagraphindent) parameter `left`
- Method [OfficeTextParagraphIndent.op_Equality](/api/core/officeimo-drawing-officetextparagraphindent/#method-op-equality-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextparagraphindent) parameter `right`
- Method [OfficeTextParagraphIndent.op_Inequality](/api/core/officeimo-drawing-officetextparagraphindent/#method-op-inequality-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextparagraphindent) parameter `left`
- Method [OfficeTextParagraphIndent.op_Inequality](/api/core/officeimo-drawing-officetextparagraphindent/#method-op-inequality-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextparagraphindent) parameter `right`

Filter members 

Show inherited

## Constructors

`public OfficeTextParagraphIndent(double firstLineOffset, double continuationLineOffset)` [#](#constructor-ctor-double-double)

[OfficeTextParagraphIndent.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L16)

Creates a paragraph indentation descriptor.

Parameters

**firstLineOffset double required**

Additional offset applied to the first visual line of each paragraph.

**continuationLineOffset double required**

Additional offset applied to wrapped continuation lines.

## Methods

Equals 2 overloads

`public bool Equals(OfficeTextParagraphIndent other)` [#](#method-equals-officeimo-drawing-officetextparagraphindent)

[OfficeTextParagraphIndent.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L51)

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

Parameters

**other OfficeIMO.Drawing.OfficeTextParagraphIndent 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)

[OfficeTextParagraphIndent.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L54)

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 static OfficeTextParagraphIndent FirstLine(double offset)` [#](#method-firstline-double)

[OfficeTextParagraphIndent.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L35)

Creates a first-line indentation descriptor.

Parameters

**offset double required**

Returns

`OfficeTextParagraphIndent`

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

[OfficeTextParagraphIndent.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L59)

Returns the hash code for this instance.

Returns

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

`public static OfficeTextParagraphIndent Hanging(double offset)` [#](#method-hanging-double)

[OfficeTextParagraphIndent.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L38)

Creates a hanging indentation descriptor.

Parameters

**offset double required**

Returns

`OfficeTextParagraphIndent`

`public static bool op_Equality(OfficeTextParagraphIndent left, OfficeTextParagraphIndent right)` [#](#method-op-equality-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextparagraphindent)

[OfficeTextParagraphIndent.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L67)

Compares two indentation descriptors for equality.

Parameters

**left OfficeIMO.Drawing.OfficeTextParagraphIndent required**

**right OfficeIMO.Drawing.OfficeTextParagraphIndent required**

Returns

`bool`

`public static bool op_Inequality(OfficeTextParagraphIndent left, OfficeTextParagraphIndent right)` [#](#method-op-inequality-officeimo-drawing-officetextparagraphindent-officeimo-drawing-officetextparagraphindent)

[OfficeTextParagraphIndent.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L70)

Compares two indentation descriptors for inequality.

Parameters

**left OfficeIMO.Drawing.OfficeTextParagraphIndent required**

**right OfficeIMO.Drawing.OfficeTextParagraphIndent required**

Returns

`bool`

`public OfficeTextParagraphIndent Scale(double scale)` [#](#method-scale-double)

[OfficeTextParagraphIndent.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L42)

Scales indentation offsets by a positive rendering factor.

Parameters

**scale double required**

Returns

`OfficeTextParagraphIndent`

## Inherited Methods

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

Inherited from object

Returns

`Type`

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

Inherited from ValueType

Returns

`string?`

## Properties

`public static OfficeTextParagraphIndent Empty { get; }` [#](#property-empty)

[OfficeTextParagraphIndent.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L8)

Represents text without paragraph indentation.

`public double FirstLineOffset { get; }` [#](#property-firstlineoffset)

[OfficeTextParagraphIndent.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L23)

Additional offset applied to the first visual line of each paragraph.

`public double ContinuationLineOffset { get; }` [#](#property-continuationlineoffset)

[OfficeTextParagraphIndent.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L26)

Additional offset applied to wrapped continuation lines.

`public double MaximumOffset { get; }` [#](#property-maximumoffset)

[OfficeTextParagraphIndent.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L29)

Largest line offset used by this paragraph indentation.

`public bool IsEmpty { get; }` [#](#property-isempty)

[OfficeTextParagraphIndent.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeTextParagraphIndent.cs#L32)

Whether the indentation has no visual effect.

<!-- PowerForge markdown artifact sha256:468271A3414AC86025D0363D91C2DB1548F0E8DDB0E37E51FA004CB6CC66C824 -->
