API Reference
Class
OfficeTextBlockLayout
Represents a measured multi-line text block produced by the shared text layout engine.
Inheritance
- Object
- OfficeTextBlockLayout
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
- Property OfficeTextBlockRenderPlan.Layout
- Method OfficeTextLayoutEngine.ClipTextBlockToHeight
- Method OfficeTextLayoutEngine.ClipTextBlockToHeight
- Method OfficeTextLayoutEngine.FitWrappedText
- Method OfficeTextLayoutEngine.LayoutStackedTextBlock
- Method OfficeTextLayoutEngine.LayoutTextBlock
- Method OfficeTextLayoutEngine.LayoutTextBlock
Accepted by parameters
- Method OfficeTextBlockRenderer.AppendSvgStyledTextBlock
- Method OfficeTextBlockRenderer.AppendSvgTextBlock
- Method OfficeTextBlockRenderer.DrawRasterTextBlock
- Method OfficeTextBlockRenderer.DrawRasterTextBlock
- Method OfficeTextBlockRenderer.WriteSvgTextBlock
- Method OfficeTextBlockRenderer.WriteSvgTextBlock
- Method OfficeTextBlockRenderPlan.CreateFromCenter
- Method OfficeTextBlockRenderPlan.CreateFromRectangle
Constructors
public OfficeTextBlockLayout(IReadOnlyList<OfficeTextLine> lines, Double fontSize, Double lineHeight, Double width, Double height, Boolean clipped = false) #Creates a measured text block.
Parameters
- lines System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeTextLine}
- Measured text lines.
- fontSize System.Double
- Resolved font size used for measurement.
- lineHeight System.Double
- Resolved line height.
- width System.Double
- Measured block width.
- height System.Double
- Measured block height.
- clipped System.Boolean = false
- Whether the block was clipped or ellipsized to fit a requested bound.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public IReadOnlyList<OfficeTextLine> Lines { get; } #Measured text lines.
public Double FontSize { get; } #Resolved font size used for measurement.
public Double LineHeight { get; } #Resolved line height.
public Double Width { get; } #Measured block width.
public Double Height { get; } #Measured block height.
public Boolean Clipped { get; } #Whether the block was clipped or ellipsized to fit a requested bound.