Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeTextBlockRenderer

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Renders measured text blocks through the shared dependency-free Drawing primitives.

Inheritance

  • Object
  • OfficeTextBlockRenderer

Methods

public static StringBuilder AppendSvgRichTextBlock(StringBuilder builder, OfficeRichTextBlockLayout layout, Double left, Double top, Double width, Double height, OfficeTextAlignment horizontalAlignment = Left, OfficeTextVerticalAlignment verticalAlignment = Top, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0, Boolean centerLineInLineHeight = true) #
Returns: StringBuilder

Appends SVG text elements for a measured rich text block.

Parameters

builder System.Text.StringBuilder requiredposition: 0
SVG markup builder.
layout OfficeIMO.Drawing.OfficeRichTextBlockLayout requiredposition: 1
Measured rich text block layout.
left System.Double requiredposition: 2
Left edge of the available text rectangle.
top System.Double requiredposition: 3
Top edge of the available text rectangle.
width System.Double requiredposition: 4
Available text rectangle width.
height System.Double requiredposition: 5
Available text rectangle height.
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left optionalposition: 6
Horizontal alignment inside the rectangle.
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top optionalposition: 7
Vertical alignment inside the rectangle.
rotationDegrees System.Double = 0 optionalposition: 8
Clockwise rotation in degrees.
rotationCenterX System.Double = 0 optionalposition: 9
Rotation center X coordinate.
rotationCenterY System.Double = 0 optionalposition: 10
Rotation center Y coordinate.
centerLineInLineHeight System.Boolean = true optionalposition: 11
Whether each run glyph box should be vertically centered inside its measured line height.

Returns

The supplied builder for call chaining.

public static StringBuilder AppendSvgRichTextSegment(StringBuilder builder, OfficeRichTextSegment segment, Double x, Double baseline, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0) #
Returns: StringBuilder

Appends one SVG text element for a measured rich text segment.

Parameters

builder System.Text.StringBuilder requiredposition: 0
SVG markup builder.
segment OfficeIMO.Drawing.OfficeRichTextSegment requiredposition: 1
Measured rich text segment.
x System.Double requiredposition: 2
Resolved segment x-coordinate.
baseline System.Double requiredposition: 3
Resolved segment baseline y-coordinate.
rotationDegrees System.Double = 0 optionalposition: 4
Clockwise rotation in degrees.
rotationCenterX System.Double = 0 optionalposition: 5
Rotation center X coordinate.
rotationCenterY System.Double = 0 optionalposition: 6
Rotation center Y coordinate.

Returns

The supplied builder for call chaining.

public static StringBuilder AppendSvgStyledTextBlock(StringBuilder builder, OfficeTextBlockLayout layout, Double left, Double top, Double width, Double height, OfficeColor color, String fontFamily, OfficeTextAlignment horizontalAlignment, OfficeTextVerticalAlignment verticalAlignment, Boolean bold, Boolean italic, Boolean underline, Double rotationDegrees, Double rotationCenterX, Double rotationCenterY, Boolean centerLineInLineHeight, Boolean strikethrough, OfficeTextDecorationStyle underlineStyle, OfficeTextDecorationStyle strikethroughStyle, OfficeTextBaseline baseline, Nullable<OfficeColor> decorationColor = null) #
Returns: StringBuilder

Appends a measured SVG text block with typed decoration and baseline styling.

Parameters

builder System.Text.StringBuilder requiredposition: 0
layout OfficeIMO.Drawing.OfficeTextBlockLayout requiredposition: 1
left System.Double requiredposition: 2
top System.Double requiredposition: 3
width System.Double requiredposition: 4
height System.Double requiredposition: 5
color OfficeIMO.Drawing.OfficeColor requiredposition: 6
fontFamily System.String requiredposition: 7
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment requiredposition: 8
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment requiredposition: 9
bold System.Boolean requiredposition: 10
italic System.Boolean requiredposition: 11
underline System.Boolean requiredposition: 12
rotationDegrees System.Double requiredposition: 13
rotationCenterX System.Double requiredposition: 14
rotationCenterY System.Double requiredposition: 15
centerLineInLineHeight System.Boolean requiredposition: 16
strikethrough System.Boolean requiredposition: 17
underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle requiredposition: 18
strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle requiredposition: 19
baseline OfficeIMO.Drawing.OfficeTextBaseline requiredposition: 20
decorationColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 21
public static StringBuilder AppendSvgTextBlock(StringBuilder builder, OfficeTextBlockLayout layout, Double left, Double top, Double width, Double height, OfficeColor color, String fontFamily, OfficeTextAlignment horizontalAlignment = Left, OfficeTextVerticalAlignment verticalAlignment = Top, Boolean bold = false, Boolean italic = false, Boolean underline = false, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0, Boolean centerLineInLineHeight = true, Boolean strikethrough = false) #
Returns: StringBuilder

Appends SVG text elements for a measured text block.

Parameters

builder System.Text.StringBuilder requiredposition: 0
SVG markup builder.
layout OfficeIMO.Drawing.OfficeTextBlockLayout requiredposition: 1
Measured text block layout.
left System.Double requiredposition: 2
Left edge of the available text rectangle.
top System.Double requiredposition: 3
Top edge of the available text rectangle.
width System.Double requiredposition: 4
Available text rectangle width.
height System.Double requiredposition: 5
Available text rectangle height.
color OfficeIMO.Drawing.OfficeColor requiredposition: 6
Text color.
fontFamily System.String requiredposition: 7
SVG font-family value.
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left optionalposition: 8
Horizontal alignment inside the rectangle.
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top optionalposition: 9
Vertical alignment inside the rectangle.
bold System.Boolean = false optionalposition: 10
Whether to render bold text.
italic System.Boolean = false optionalposition: 11
Whether to render italic text.
underline System.Boolean = false optionalposition: 12
Whether to render underlined text.
rotationDegrees System.Double = 0 optionalposition: 13
Clockwise rotation in degrees.
rotationCenterX System.Double = 0 optionalposition: 14
Rotation center X coordinate.
rotationCenterY System.Double = 0 optionalposition: 15
Rotation center Y coordinate.
centerLineInLineHeight System.Boolean = true optionalposition: 16
Whether the text glyph box should be vertically centered inside each measured line height.
strikethrough System.Boolean = false optionalposition: 17
Whether to render strikethrough text.

Returns

The supplied builder for call chaining.

AppendSvgTextElement 2 overloads
public static StringBuilder AppendSvgTextElement(StringBuilder builder, String text, Double x, Double y, Double lineHeight, OfficeColor color, String fontFamily, Double fontSize, OfficeTextAlignment horizontalAlignment, Boolean bold, Boolean italic, Boolean underline, Double rotationDegrees, Double rotationCenterX, Double rotationCenterY, Boolean strikethrough) #
Returns: StringBuilder

Appends one SVG text element with optional tspan children for callers that already resolved placement.

Parameters

builder System.Text.StringBuilder requiredposition: 0
SVG markup builder.
text System.String requiredposition: 1
Text content. Hard breaks become tspan children.
x System.Double requiredposition: 2
Resolved text anchor x-coordinate.
y System.Double requiredposition: 3
Resolved first-line baseline y-coordinate.
lineHeight System.Double requiredposition: 4
Distance between line baselines.
color OfficeIMO.Drawing.OfficeColor requiredposition: 5
Text fill color.
fontFamily System.String requiredposition: 6
SVG font-family value.
fontSize System.Double requiredposition: 7
SVG font size.
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment requiredposition: 8
Horizontal alignment used to derive text-anchor.
bold System.Boolean requiredposition: 9
Whether to render bold text.
italic System.Boolean requiredposition: 10
Whether to render italic text.
underline System.Boolean requiredposition: 11
Whether to render underlined text.
rotationDegrees System.Double requiredposition: 12
Clockwise rotation in degrees.
rotationCenterX System.Double requiredposition: 13
Rotation center X coordinate.
rotationCenterY System.Double requiredposition: 14
Rotation center Y coordinate.
strikethrough System.Boolean requiredposition: 15
Whether to render strikethrough text.

Returns

The supplied builder for call chaining.

public static StringBuilder AppendSvgTextElement(StringBuilder builder, String text, Double x, Double y, Double lineHeight, OfficeColor color, String fontFamily, Double fontSize, OfficeTextAlignment horizontalAlignment = Left, Boolean bold = false, Boolean italic = false, Boolean underline = false, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0, Boolean strikethrough = false, OfficeTextDecorationStyle underlineStyle = None, OfficeTextDecorationStyle strikethroughStyle = None, OfficeTextBaseline baseline = Normal, Nullable<OfficeColor> decorationColor = null) #
Returns: StringBuilder

Appends one SVG text element with native decoration and baseline styling.

Parameters

builder System.Text.StringBuilder requiredposition: 0
text System.String requiredposition: 1
x System.Double requiredposition: 2
y System.Double requiredposition: 3
lineHeight System.Double requiredposition: 4
color OfficeIMO.Drawing.OfficeColor requiredposition: 5
fontFamily System.String requiredposition: 6
fontSize System.Double requiredposition: 7
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left optionalposition: 8
bold System.Boolean = false optionalposition: 9
italic System.Boolean = false optionalposition: 10
underline System.Boolean = false optionalposition: 11
rotationDegrees System.Double = 0 optionalposition: 12
rotationCenterX System.Double = 0 optionalposition: 13
rotationCenterY System.Double = 0 optionalposition: 14
strikethrough System.Boolean = false optionalposition: 15
underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 16
strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 17
baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal optionalposition: 18
decorationColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 19
public static Void DrawRasterRichTextBlock(OfficeRasterCanvas canvas, OfficeRichTextBlockLayout layout, Double left, Double top, Double width, Double height, OfficeTextAlignment horizontalAlignment = Left, OfficeTextVerticalAlignment verticalAlignment = Top, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0, Boolean centerLineInLineHeight = true, Boolean flipHorizontal = false, Boolean flipVertical = false) #
Returns: Void

Draws a measured rich text block on a raster canvas.

Parameters

canvas OfficeIMO.Drawing.OfficeRasterCanvas requiredposition: 0
Raster canvas receiving the text.
layout OfficeIMO.Drawing.OfficeRichTextBlockLayout requiredposition: 1
Measured rich text block layout.
left System.Double requiredposition: 2
Left edge of the available text rectangle.
top System.Double requiredposition: 3
Top edge of the available text rectangle.
width System.Double requiredposition: 4
Available text rectangle width.
height System.Double requiredposition: 5
Available text rectangle height.
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left optionalposition: 6
Horizontal alignment inside the rectangle.
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top optionalposition: 7
Vertical alignment inside the rectangle.
rotationDegrees System.Double = 0 optionalposition: 8
Clockwise rotation in degrees.
rotationCenterX System.Double = 0 optionalposition: 9
Rotation center X coordinate.
rotationCenterY System.Double = 0 optionalposition: 10
Rotation center Y coordinate.
centerLineInLineHeight System.Boolean = true optionalposition: 11
Whether each run glyph box should be vertically centered inside its measured line height.
flipHorizontal System.Boolean = false optionalposition: 12
Whether to mirror each rendered segment horizontally around the rotation center before rotation.
flipVertical System.Boolean = false optionalposition: 13
Whether to mirror each rendered segment vertically around the rotation center before rotation.
DrawRasterTextBlock 2 overloads
public static Void DrawRasterTextBlock(OfficeRasterCanvas canvas, OfficeTextBlockLayout layout, Double left, Double top, Double width, Double height, OfficeColor color, OfficeTextAlignment horizontalAlignment, OfficeTextVerticalAlignment verticalAlignment, Boolean bold, Boolean italic, Boolean underline, Double rotationDegrees, Double rotationCenterX, Double rotationCenterY, Boolean centerLineInLineHeight, Double underlineOffsetFactor, Boolean strikethrough, String fontFamily, Boolean flipHorizontal, Boolean flipVertical) #
Returns: Void

Draws a measured text block on a raster canvas.

Parameters

canvas OfficeIMO.Drawing.OfficeRasterCanvas requiredposition: 0
Raster canvas receiving the text.
layout OfficeIMO.Drawing.OfficeTextBlockLayout requiredposition: 1
Measured text block layout.
left System.Double requiredposition: 2
Left edge of the available text rectangle.
top System.Double requiredposition: 3
Top edge of the available text rectangle.
width System.Double requiredposition: 4
Available text rectangle width.
height System.Double requiredposition: 5
Available text rectangle height.
color OfficeIMO.Drawing.OfficeColor requiredposition: 6
Text color.
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment requiredposition: 7
Horizontal alignment inside the rectangle.
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment requiredposition: 8
Vertical alignment inside the rectangle.
bold System.Boolean requiredposition: 9
Whether to render bold text.
italic System.Boolean requiredposition: 10
Whether to render italic text.
underline System.Boolean requiredposition: 11
Whether to render an underline for each visible line.
rotationDegrees System.Double requiredposition: 12
Clockwise rotation in degrees.
rotationCenterX System.Double requiredposition: 13
Rotation center X coordinate.
rotationCenterY System.Double requiredposition: 14
Rotation center Y coordinate.
centerLineInLineHeight System.Boolean requiredposition: 15
Whether the text glyph box should be vertically centered inside each measured line height.
underlineOffsetFactor System.Double requiredposition: 16
Underline baseline offset as a factor of the resolved font size.
strikethrough System.Boolean requiredposition: 17
Whether to render a strikethrough for each visible line.
fontFamily System.String requiredposition: 18
Requested font family fallback list.
flipHorizontal System.Boolean requiredposition: 19
Whether to mirror each rendered line horizontally around the rotation center before rotation.
flipVertical System.Boolean requiredposition: 20
Whether to mirror each rendered line vertically around the rotation center before rotation.
public static Void DrawRasterTextBlock(OfficeRasterCanvas canvas, OfficeTextBlockLayout layout, Double left, Double top, Double width, Double height, OfficeColor color, OfficeTextAlignment horizontalAlignment = Left, OfficeTextVerticalAlignment verticalAlignment = Top, Boolean bold = false, Boolean italic = false, Boolean underline = false, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0, Boolean centerLineInLineHeight = true, Double underlineOffsetFactor = 0.86, Boolean strikethrough = false, String fontFamily = null, Boolean flipHorizontal = false, Boolean flipVertical = false, OfficeTextDecorationStyle underlineStyle = None, OfficeTextDecorationStyle strikethroughStyle = None, OfficeTextBaseline baseline = Normal, Nullable<OfficeColor> decorationColor = null) #
Returns: Void

Draws a measured text block with native decoration and baseline styling.

Parameters

canvas OfficeIMO.Drawing.OfficeRasterCanvas requiredposition: 0
layout OfficeIMO.Drawing.OfficeTextBlockLayout requiredposition: 1
left System.Double requiredposition: 2
top System.Double requiredposition: 3
width System.Double requiredposition: 4
height System.Double requiredposition: 5
color OfficeIMO.Drawing.OfficeColor requiredposition: 6
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left optionalposition: 7
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top optionalposition: 8
bold System.Boolean = false optionalposition: 9
italic System.Boolean = false optionalposition: 10
underline System.Boolean = false optionalposition: 11
rotationDegrees System.Double = 0 optionalposition: 12
rotationCenterX System.Double = 0 optionalposition: 13
rotationCenterY System.Double = 0 optionalposition: 14
centerLineInLineHeight System.Boolean = true optionalposition: 15
underlineOffsetFactor System.Double = 0.86 optionalposition: 16
strikethrough System.Boolean = false optionalposition: 17
fontFamily System.String = null optionalposition: 18
flipHorizontal System.Boolean = false optionalposition: 19
flipVertical System.Boolean = false optionalposition: 20
underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 21
strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 22
baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal optionalposition: 23
decorationColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 24
DrawRasterTextBox 2 overloads
public static Void DrawRasterTextBox(OfficeRasterCanvas canvas, OfficeTextBlockRenderPlan plan, OfficeColor color, Boolean bold, Boolean italic, Boolean underline, Nullable<OfficeTextAlignment> horizontalAlignment, Nullable<OfficeTextVerticalAlignment> verticalAlignment, Double rotationDegrees, Double rotationCenterX, Double rotationCenterY, Nullable<OfficeColor> backgroundColor, Double backgroundPaddingX, Double backgroundPaddingY, Boolean centerLineInLineHeight, Double underlineOffsetFactor, Boolean strikethrough, String fontFamily) #
Returns: Void

Draws a measured text-box plan on a raster canvas, including an optional text background.

Parameters

canvas OfficeIMO.Drawing.OfficeRasterCanvas requiredposition: 0
Raster canvas receiving the text.
plan OfficeIMO.Drawing.OfficeTextBlockRenderPlan requiredposition: 1
Resolved text-box layout and placement.
color OfficeIMO.Drawing.OfficeColor requiredposition: 2
Text color.
bold System.Boolean requiredposition: 3
Whether to render bold text.
italic System.Boolean requiredposition: 4
Whether to render italic text.
underline System.Boolean requiredposition: 5
Whether to render an underline for each visible line.
horizontalAlignment System.Nullable{OfficeIMO.Drawing.OfficeTextAlignment} requiredposition: 6
Horizontal alignment override. Pass null to use plan.
verticalAlignment System.Nullable{OfficeIMO.Drawing.OfficeTextVerticalAlignment} requiredposition: 7
Vertical alignment override. Pass null to use plan.
rotationDegrees System.Double requiredposition: 8
Clockwise rotation in degrees.
rotationCenterX System.Double requiredposition: 9
Rotation center X coordinate.
rotationCenterY System.Double requiredposition: 10
Rotation center Y coordinate.
backgroundColor System.Nullable{OfficeIMO.Drawing.OfficeColor} requiredposition: 11
Optional background color around the measured text block.
backgroundPaddingX System.Double requiredposition: 12
Horizontal background padding.
backgroundPaddingY System.Double requiredposition: 13
Vertical background padding.
centerLineInLineHeight System.Boolean requiredposition: 14
Whether the text glyph box should be vertically centered inside each measured line height.
underlineOffsetFactor System.Double requiredposition: 15
Underline baseline offset as a factor of the resolved font size.
strikethrough System.Boolean requiredposition: 16
Whether to render a strikethrough for each visible line.
fontFamily System.String requiredposition: 17
Requested font family fallback list.
public static Void DrawRasterTextBox(OfficeRasterCanvas canvas, OfficeTextBlockRenderPlan plan, OfficeColor color, Boolean bold = false, Boolean italic = false, Boolean underline = false, Nullable<OfficeTextAlignment> horizontalAlignment = null, Nullable<OfficeTextVerticalAlignment> verticalAlignment = null, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0, Nullable<OfficeColor> backgroundColor = null, Double backgroundPaddingX = 0, Double backgroundPaddingY = 0, Boolean centerLineInLineHeight = true, Double underlineOffsetFactor = 0.86, Boolean strikethrough = false, String fontFamily = null, OfficeTextDecorationStyle underlineStyle = None, OfficeTextDecorationStyle strikethroughStyle = None, OfficeTextBaseline baseline = Normal) #
Returns: Void

Draws a measured text-box plan with native decoration and baseline styling.

Parameters

canvas OfficeIMO.Drawing.OfficeRasterCanvas requiredposition: 0
plan OfficeIMO.Drawing.OfficeTextBlockRenderPlan requiredposition: 1
color OfficeIMO.Drawing.OfficeColor requiredposition: 2
bold System.Boolean = false optionalposition: 3
italic System.Boolean = false optionalposition: 4
underline System.Boolean = false optionalposition: 5
horizontalAlignment System.Nullable{OfficeIMO.Drawing.OfficeTextAlignment} = null optionalposition: 6
verticalAlignment System.Nullable{OfficeIMO.Drawing.OfficeTextVerticalAlignment} = null optionalposition: 7
rotationDegrees System.Double = 0 optionalposition: 8
rotationCenterX System.Double = 0 optionalposition: 9
rotationCenterY System.Double = 0 optionalposition: 10
backgroundColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 11
backgroundPaddingX System.Double = 0 optionalposition: 12
backgroundPaddingY System.Double = 0 optionalposition: 13
centerLineInLineHeight System.Boolean = true optionalposition: 14
underlineOffsetFactor System.Double = 0.86 optionalposition: 15
strikethrough System.Boolean = false optionalposition: 16
fontFamily System.String = null optionalposition: 17
underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 18
strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 19
baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal optionalposition: 20
WriteSvgTextBlock 2 overloads
public static Void WriteSvgTextBlock(XmlWriter writer, OfficeTextBlockLayout layout, Double left, Double top, Double width, Double height, OfficeColor color, String fontFamily, OfficeTextAlignment horizontalAlignment, OfficeTextVerticalAlignment verticalAlignment, Boolean bold, Boolean italic, Boolean underline, Double rotationDegrees, Double rotationCenterX, Double rotationCenterY, String svgNamespace, Action<XmlWriter> configureTextAttributes, Boolean strikethrough) #
Returns: Void

Writes an SVG text block using one text element with measured-line tspan children.

Parameters

writer System.Xml.XmlWriter requiredposition: 0
SVG XML writer.
layout OfficeIMO.Drawing.OfficeTextBlockLayout requiredposition: 1
Measured text block layout.
left System.Double requiredposition: 2
Left edge of the available text rectangle.
top System.Double requiredposition: 3
Top edge of the available text rectangle.
width System.Double requiredposition: 4
Available text rectangle width.
height System.Double requiredposition: 5
Available text rectangle height.
color OfficeIMO.Drawing.OfficeColor requiredposition: 6
Text color.
fontFamily System.String requiredposition: 7
SVG font-family value.
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment requiredposition: 8
Horizontal alignment inside the rectangle.
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment requiredposition: 9
Vertical alignment inside the rectangle.
bold System.Boolean requiredposition: 10
Whether to render bold text.
italic System.Boolean requiredposition: 11
Whether to render italic text.
underline System.Boolean requiredposition: 12
Whether to render underlined text.
rotationDegrees System.Double requiredposition: 13
Clockwise rotation in degrees.
rotationCenterX System.Double requiredposition: 14
Rotation center X coordinate.
rotationCenterY System.Double requiredposition: 15
Rotation center Y coordinate.
svgNamespace System.String requiredposition: 16
SVG namespace URI. Pass null to write elements without a namespace.
configureTextAttributes System.Action{System.Xml.XmlWriter} requiredposition: 17
Optional callback for adapter-specific attributes on the text element.
strikethrough System.Boolean requiredposition: 18
Whether to render strikethrough text.
public static Void WriteSvgTextBlock(XmlWriter writer, OfficeTextBlockLayout layout, Double left, Double top, Double width, Double height, OfficeColor color, String fontFamily, OfficeTextAlignment horizontalAlignment = Left, OfficeTextVerticalAlignment verticalAlignment = Top, Boolean bold = false, Boolean italic = false, Boolean underline = false, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0, String svgNamespace = null, Action<XmlWriter> configureTextAttributes = null, Boolean strikethrough = false, OfficeTextDecorationStyle underlineStyle = None, OfficeTextDecorationStyle strikethroughStyle = None, OfficeTextBaseline baseline = Normal) #
Returns: Void

Writes an SVG text block with native decoration and baseline styling.

Parameters

writer System.Xml.XmlWriter requiredposition: 0
layout OfficeIMO.Drawing.OfficeTextBlockLayout requiredposition: 1
left System.Double requiredposition: 2
top System.Double requiredposition: 3
width System.Double requiredposition: 4
height System.Double requiredposition: 5
color OfficeIMO.Drawing.OfficeColor requiredposition: 6
fontFamily System.String requiredposition: 7
horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left optionalposition: 8
verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top optionalposition: 9
bold System.Boolean = false optionalposition: 10
italic System.Boolean = false optionalposition: 11
underline System.Boolean = false optionalposition: 12
rotationDegrees System.Double = 0 optionalposition: 13
rotationCenterX System.Double = 0 optionalposition: 14
rotationCenterY System.Double = 0 optionalposition: 15
svgNamespace System.String = null optionalposition: 16
configureTextAttributes System.Action{System.Xml.XmlWriter} = null optionalposition: 17
strikethrough System.Boolean = false optionalposition: 18
underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 19
strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 20
baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal optionalposition: 21
WriteSvgTextBox 2 overloads
public static Void WriteSvgTextBox(XmlWriter writer, OfficeTextBlockRenderPlan plan, OfficeColor color, String fontFamily, Boolean bold, Boolean italic, Boolean underline, Double rotationDegrees, Double rotationCenterX, Double rotationCenterY, String svgNamespace, Nullable<OfficeColor> backgroundColor, Double backgroundPaddingX, Double backgroundPaddingY, Action<XmlWriter> configureTextAttributes, Action<XmlWriter> configureBackgroundAttributes, Boolean strikethrough) #
Returns: Void

Writes a measured SVG text-box plan, including an optional text background.

Parameters

writer System.Xml.XmlWriter requiredposition: 0
SVG XML writer.
plan OfficeIMO.Drawing.OfficeTextBlockRenderPlan requiredposition: 1
Resolved text-box layout and placement.
color OfficeIMO.Drawing.OfficeColor requiredposition: 2
Text color.
fontFamily System.String requiredposition: 3
SVG font-family value.
bold System.Boolean requiredposition: 4
Whether to render bold text.
italic System.Boolean requiredposition: 5
Whether to render italic text.
underline System.Boolean requiredposition: 6
Whether to render underlined text.
rotationDegrees System.Double requiredposition: 7
Clockwise rotation in degrees.
rotationCenterX System.Double requiredposition: 8
Rotation center X coordinate.
rotationCenterY System.Double requiredposition: 9
Rotation center Y coordinate.
svgNamespace System.String requiredposition: 10
SVG namespace URI. Pass null to write elements without a namespace.
backgroundColor System.Nullable{OfficeIMO.Drawing.OfficeColor} requiredposition: 11
Optional background color around the measured text block.
backgroundPaddingX System.Double requiredposition: 12
Horizontal background padding.
backgroundPaddingY System.Double requiredposition: 13
Vertical background padding.
configureTextAttributes System.Action{System.Xml.XmlWriter} requiredposition: 14
Optional callback for adapter-specific attributes on the text element.
configureBackgroundAttributes System.Action{System.Xml.XmlWriter} requiredposition: 15
Optional callback for adapter-specific attributes on the background rect element.
strikethrough System.Boolean requiredposition: 16
Whether to render strikethrough text.
public static Void WriteSvgTextBox(XmlWriter writer, OfficeTextBlockRenderPlan plan, OfficeColor color, String fontFamily, Boolean bold = false, Boolean italic = false, Boolean underline = false, Double rotationDegrees = 0, Double rotationCenterX = 0, Double rotationCenterY = 0, String svgNamespace = null, Nullable<OfficeColor> backgroundColor = null, Double backgroundPaddingX = 0, Double backgroundPaddingY = 0, Action<XmlWriter> configureTextAttributes = null, Action<XmlWriter> configureBackgroundAttributes = null, Boolean strikethrough = false, OfficeTextDecorationStyle underlineStyle = None, OfficeTextDecorationStyle strikethroughStyle = None, OfficeTextBaseline baseline = Normal) #
Returns: Void

Writes an SVG text-box plan with native decoration and baseline styling.

Parameters

writer System.Xml.XmlWriter requiredposition: 0
plan OfficeIMO.Drawing.OfficeTextBlockRenderPlan requiredposition: 1
color OfficeIMO.Drawing.OfficeColor requiredposition: 2
fontFamily System.String requiredposition: 3
bold System.Boolean = false optionalposition: 4
italic System.Boolean = false optionalposition: 5
underline System.Boolean = false optionalposition: 6
rotationDegrees System.Double = 0 optionalposition: 7
rotationCenterX System.Double = 0 optionalposition: 8
rotationCenterY System.Double = 0 optionalposition: 9
svgNamespace System.String = null optionalposition: 10
backgroundColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 11
backgroundPaddingX System.Double = 0 optionalposition: 12
backgroundPaddingY System.Double = 0 optionalposition: 13
configureTextAttributes System.Action{System.Xml.XmlWriter} = null optionalposition: 14
configureBackgroundAttributes System.Action{System.Xml.XmlWriter} = null optionalposition: 15
strikethrough System.Boolean = false optionalposition: 16
underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 17
strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None optionalposition: 18
baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal optionalposition: 19