Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeDrawingRichText

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

Positioned rich text box inside an OfficeDrawing canvas. Coordinates use the drawing's local top-left coordinate space.

Inheritance

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Constructors

public OfficeDrawingRichText(IReadOnlyList<OfficeRichTextRun> runs, Double x, Double y, Double width, Double height, OfficeTextAlignment alignment = Left, Nullable<Double> lineHeight = null, OfficeTextVerticalAlignment verticalAlignment = Top, Double rotationDegrees = 0, Nullable<Double> rotationCenterX = null, Nullable<Double> rotationCenterY = null, Boolean wrapText = true, Boolean shrinkToFit = false, Boolean flipHorizontal = false, Boolean flipVertical = false, Nullable<OfficeTextPadding> padding = null, Nullable<OfficeTextParagraphIndent> paragraphIndent = null) #

Creates a positioned drawing rich text box.

Parameters

runs System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeRichTextRun} requiredposition: 0
x System.Double requiredposition: 1
y System.Double requiredposition: 2
width System.Double requiredposition: 3
height System.Double requiredposition: 4
alignment OfficeIMO.Drawing.OfficeTextAlignment = Left optionalposition: 5
lineHeight System.Nullable{System.Double} = null optionalposition: 6
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top optionalposition: 7
rotationDegrees System.Double = 0 optionalposition: 8
rotationCenterX System.Nullable{System.Double} = null optionalposition: 9
rotationCenterY System.Nullable{System.Double} = null optionalposition: 10
wrapText System.Boolean = true optionalposition: 11
shrinkToFit System.Boolean = false optionalposition: 12
flipHorizontal System.Boolean = false optionalposition: 13
flipVertical System.Boolean = false optionalposition: 14
padding System.Nullable{OfficeIMO.Drawing.OfficeTextPadding} = null optionalposition: 15
paragraphIndent System.Nullable{OfficeIMO.Drawing.OfficeTextParagraphIndent} = null optionalposition: 16

Methods

public OfficeDrawingRichText Clone() #
Returns: OfficeDrawingRichText

Creates a detached copy of this positioned rich text box.

public OfficeImageFrameTransform CreateFrameTransform() #
Returns: OfficeImageFrameTransform

Creates the reusable frame transform used by SVG and raster renderers.

Properties

public IReadOnlyList<OfficeRichTextRun> Runs { get; } #

Styled text runs in paint order.

public String PlainText { get; } #

Plain text formed by concatenating all runs.

public Double X { get; } #

Text box horizontal position inside the drawing.

public Double Y { get; } #

Text box vertical position inside the drawing.

public Double Width { get; } #

Text box width.

public Double Height { get; } #

Text box height.

public OfficeTextAlignment Alignment { get; } #

Horizontal text alignment inside the text box.

public Nullable<Double> LineHeight { get; } #

Optional line height in drawing units. Null lets renderers use their default line height.

public OfficeTextVerticalAlignment VerticalAlignment { get; } #

Vertical placement of text inside the drawing text box.

public Double RotationDegrees { get; } #

Clockwise text rotation in degrees.

public Double RotationCenterX { get; } #

X coordinate of the text rotation center in the drawing's local coordinate space.

public Double RotationCenterY { get; } #

Y coordinate of the text rotation center in the drawing's local coordinate space.

public Boolean WrapText { get; } #

Whether renderers should wrap text to the text box width.

public Boolean ShrinkToFit { get; } #

Whether renderers should reduce font sizes when text overflows the text box.

public Boolean FlipHorizontal { get; } #

Whether to mirror the rendered rich text horizontally around the frame center.

public Boolean FlipVertical { get; } #

Whether to mirror the rendered rich text vertically around the frame center.

public OfficeTextPadding Padding { get; } #

Insets applied inside the text frame before rich text layout.

public OfficeTextParagraphIndent ParagraphIndent { get; } #

First-line and continuation-line offsets applied inside the rich text frame.

public Boolean HasPadding { get; } #

Whether the text frame has non-zero padding.

public Boolean HasParagraphIndent { get; } #

Whether the text frame has non-zero paragraph indentation.

public Boolean HasFrameTransform { get; } #

Whether the text frame applies rotation or mirroring.