OfficeTextParagraphLabel
OfficeIMO.Drawing
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
Accepted by parameters 1
- Constructor OfficeRichTextParagraph.OfficeRichTextParagraph
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
- The independently styled label.
- position double
- Left edge, center or right edge according to alignment.
- alignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- Label alignment at the position.
- followedBy OfficeIMO.Drawing.OfficeTextParagraphLabelFollowedBy = Position
- Whether text uses a declared position, a space or no separator.
- textPosition double? = null
- Optional first-line text position for Position mode.
Returns
OfficeTextParagraphLabelpublic 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
- position double
- minimumWidth double
- alignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- minimumDistance double = 0
Returns
OfficeTextParagraphLabelInherited Methods
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.