# OfficeTextParagraphLabel

A styled list label placed independently of the paragraph's wrapped text.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeTextParagraphLabel.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L34)

**Modifiers**

sealed

A styled list label placed independently of the paragraph's wrapped text.

## Inheritance

- object
- OfficeTextParagraphLabel

## Remarks

Render-time layout omits an entire label that exceeds the content rectangle's right edge or right margin, marks the layout as clipped, and preserves the logical text and body insets.

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

- Property [OfficeRichTextParagraph.Label](/api/core/officeimo-drawing-officerichtextparagraph/#property-label)
- Method [OfficeTextParagraphLabel.AtPosition](/api/core/officeimo-drawing-officetextparagraphlabel/#method-atposition-officeimo-drawing-officerichtextrun-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextparagraphlabelfollowedby-nullable-system-double)
- Method [OfficeTextParagraphLabel.InBox](/api/core/officeimo-drawing-officetextparagraphlabel/#method-inbox-officeimo-drawing-officerichtextrun-double-double-officeimo-drawing-officetextalignment-double)

### Accepted by parameters 1

- Constructor [OfficeRichTextParagraph.OfficeRichTextParagraph](/api/core/officeimo-drawing-officerichtextparagraph/#constructor-ctor-collections-generic-ireadonlylist-officeimo-drawing-officerichtextrun-officeimo-drawing-officetextparagraphlabel-officeimo-drawing-officetextalignment-nullable-system-double-nullable-officeimo-drawing-officetextpadding-nullable-officeimo-drawing-officetextparagraphindent-nullable-system-double) parameter `label`

Filter members 

Show inherited

## Methods

`public static OfficeTextParagraphLabel AtPosition(OfficeRichTextRun run, double position, OfficeTextAlignment alignment = Left, OfficeTextParagraphLabelFollowedBy followedBy = Position, double? textPosition = null)` [#](#method-atposition-officeimo-drawing-officerichtextrun-double-officeimo-drawing-officetextalignment-officeimo-drawing-officetextparagraphlabelfollowedby-nullable-system-double)

[OfficeTextParagraphLabel.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L44)

Aligns a label at an absolute position inside the text frame's content rectangle.

Parameters

**run OfficeIMO.Drawing.OfficeRichTextRun required**

The independently styled label.

**position double required**

Left edge, center or right edge according to alignment.

**alignment OfficeIMO.Drawing.OfficeTextAlignment = Left optional**

Label alignment at the position.

**followedBy OfficeIMO.Drawing.OfficeTextParagraphLabelFollowedBy = Position optional**

Whether text uses a declared position, a space or no separator.

**textPosition double? = null optional**

Optional first-line text position for Position mode.

Returns

`OfficeTextParagraphLabel`

`public static OfficeTextParagraphLabel InBox(OfficeRichTextRun run, double position, double minimumWidth, OfficeTextAlignment alignment = Left, double minimumDistance = 0)` [#](#method-inbox-officeimo-drawing-officerichtextrun-double-double-officeimo-drawing-officetextalignment-double)

[OfficeTextParagraphLabel.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L34)

Places a label inside a minimum-width box. A wider label expands the box.

Parameters

**run OfficeIMO.Drawing.OfficeRichTextRun required**

**position double required**

**minimumWidth double required**

**alignment OfficeIMO.Drawing.OfficeTextAlignment = Left optional**

**minimumDistance double = 0 optional**

Returns

`OfficeTextParagraphLabel`

## 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 OfficeRichTextRun Run { get; }` [#](#property-run)

[OfficeTextParagraphLabel.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L47)

Snapshot of the label's styled text.

`public double Position { get; }` [#](#property-position)

[OfficeTextParagraphLabel.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L49)

Position relative to the frame's content rectangle, before scaling.

`public OfficeTextAlignment Alignment { get; }` [#](#property-alignment)

[OfficeTextParagraphLabel.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L51)

Alignment inside the box or at the anchor.

`public double? MinimumWidth { get; }` [#](#property-minimumwidth)

[OfficeTextParagraphLabel.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L53)

Minimum label box width, or null for point alignment.

`public double MinimumDistance { get; }` [#](#property-minimumdistance)

[OfficeTextParagraphLabel.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L55)

Minimum distance between the label and the first text line.

`public OfficeTextParagraphLabelFollowedBy FollowedBy { get; }` [#](#property-followedby)

[OfficeTextParagraphLabel.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L57)

How the first text line follows the label.

`public double? TextPosition { get; }` [#](#property-textposition)

[OfficeTextParagraphLabel.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextParagraphLabel.cs#L59)

Optional first-line text position, independent of continuation indentation.

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