Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeTextParagraphLabel

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
1f76172c94d1 with working tree changes
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.

Accepted by parameters 1

Methods

public static OfficeTextParagraphLabel AtPosition(OfficeRichTextRun run, double position, OfficeTextAlignment alignment = Left, OfficeTextParagraphLabelFollowedBy followedBy = Position, double? textPosition = null) #

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.
public static OfficeTextParagraphLabel InBox(OfficeRichTextRun run, double position, double minimumWidth, OfficeTextAlignment alignment = Left, double minimumDistance = 0) #

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

Properties

public OfficeRichTextRun Run { get; } #

Snapshot of the label's styled text.

public double Position { get; } #

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

public OfficeTextAlignment Alignment { get; } #

Alignment inside the box or at the anchor.

public double? MinimumWidth { get; } #

Minimum label box width, or null for point alignment.

public double MinimumDistance { get; } #

Minimum distance between the label and the first text line.

public OfficeTextParagraphLabelFollowedBy FollowedBy { get; } #

How the first text line follows the label.

public double? TextPosition { get; } #

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