API Reference
OfficeTextBlockRenderer
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) #StringBuilderAppends SVG text elements for a measured rich text block.
Parameters
- builder System.Text.StringBuilder
- SVG markup builder.
- layout OfficeIMO.Drawing.OfficeRichTextBlockLayout
- Measured rich text block layout.
- left System.Double
- Left edge of the available text rectangle.
- top System.Double
- Top edge of the available text rectangle.
- width System.Double
- Available text rectangle width.
- height System.Double
- Available text rectangle height.
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- Horizontal alignment inside the rectangle.
- verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top
- Vertical alignment inside the rectangle.
- rotationDegrees System.Double = 0
- Clockwise rotation in degrees.
- rotationCenterX System.Double = 0
- Rotation center X coordinate.
- rotationCenterY System.Double = 0
- Rotation center Y coordinate.
- centerLineInLineHeight System.Boolean = true
- 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) #StringBuilderAppends one SVG text element for a measured rich text segment.
Parameters
- builder System.Text.StringBuilder
- SVG markup builder.
- segment OfficeIMO.Drawing.OfficeRichTextSegment
- Measured rich text segment.
- x System.Double
- Resolved segment x-coordinate.
- baseline System.Double
- Resolved segment baseline y-coordinate.
- rotationDegrees System.Double = 0
- Clockwise rotation in degrees.
- rotationCenterX System.Double = 0
- Rotation center X coordinate.
- rotationCenterY System.Double = 0
- 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) #StringBuilderAppends a measured SVG text block with typed decoration and baseline styling.
Parameters
- builder System.Text.StringBuilder
- layout OfficeIMO.Drawing.OfficeTextBlockLayout
- left System.Double
- top System.Double
- width System.Double
- height System.Double
- color OfficeIMO.Drawing.OfficeColor
- fontFamily System.String
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment
- verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment
- bold System.Boolean
- italic System.Boolean
- underline System.Boolean
- rotationDegrees System.Double
- rotationCenterX System.Double
- rotationCenterY System.Double
- centerLineInLineHeight System.Boolean
- strikethrough System.Boolean
- underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle
- strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle
- baseline OfficeIMO.Drawing.OfficeTextBaseline
- decorationColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
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) #StringBuilderAppends SVG text elements for a measured text block.
Parameters
- builder System.Text.StringBuilder
- SVG markup builder.
- layout OfficeIMO.Drawing.OfficeTextBlockLayout
- Measured text block layout.
- left System.Double
- Left edge of the available text rectangle.
- top System.Double
- Top edge of the available text rectangle.
- width System.Double
- Available text rectangle width.
- height System.Double
- Available text rectangle height.
- color OfficeIMO.Drawing.OfficeColor
- Text color.
- fontFamily System.String
- SVG font-family value.
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- Horizontal alignment inside the rectangle.
- verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top
- Vertical alignment inside the rectangle.
- bold System.Boolean = false
- Whether to render bold text.
- italic System.Boolean = false
- Whether to render italic text.
- underline System.Boolean = false
- Whether to render underlined text.
- rotationDegrees System.Double = 0
- Clockwise rotation in degrees.
- rotationCenterX System.Double = 0
- Rotation center X coordinate.
- rotationCenterY System.Double = 0
- Rotation center Y coordinate.
- centerLineInLineHeight System.Boolean = true
- Whether the text glyph box should be vertically centered inside each measured line height.
- strikethrough System.Boolean = false
- 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, Boolean bold, Boolean italic, Boolean underline, Double rotationDegrees, Double rotationCenterX, Double rotationCenterY, Boolean strikethrough) #StringBuilderAppends one SVG text element with optional tspan children for callers that already resolved placement.
Parameters
- builder System.Text.StringBuilder
- SVG markup builder.
- text System.String
- Text content. Hard breaks become tspan children.
- x System.Double
- Resolved text anchor x-coordinate.
- y System.Double
- Resolved first-line baseline y-coordinate.
- lineHeight System.Double
- Distance between line baselines.
- color OfficeIMO.Drawing.OfficeColor
- Text fill color.
- fontFamily System.String
- SVG font-family value.
- fontSize System.Double
- SVG font size.
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment
- Horizontal alignment used to derive text-anchor.
- bold System.Boolean
- Whether to render bold text.
- italic System.Boolean
- Whether to render italic text.
- underline System.Boolean
- Whether to render underlined text.
- rotationDegrees System.Double
- Clockwise rotation in degrees.
- rotationCenterX System.Double
- Rotation center X coordinate.
- rotationCenterY System.Double
- Rotation center Y coordinate.
- strikethrough System.Boolean
- 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) #StringBuilderAppends one SVG text element with native decoration and baseline styling.
Parameters
- builder System.Text.StringBuilder
- text System.String
- x System.Double
- y System.Double
- lineHeight System.Double
- color OfficeIMO.Drawing.OfficeColor
- fontFamily System.String
- fontSize System.Double
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- bold System.Boolean = false
- italic System.Boolean = false
- underline System.Boolean = false
- rotationDegrees System.Double = 0
- rotationCenterX System.Double = 0
- rotationCenterY System.Double = 0
- strikethrough System.Boolean = false
- underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal
- decorationColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
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) #VoidDraws a measured rich text block on a raster canvas.
Parameters
- canvas OfficeIMO.Drawing.OfficeRasterCanvas
- Raster canvas receiving the text.
- layout OfficeIMO.Drawing.OfficeRichTextBlockLayout
- Measured rich text block layout.
- left System.Double
- Left edge of the available text rectangle.
- top System.Double
- Top edge of the available text rectangle.
- width System.Double
- Available text rectangle width.
- height System.Double
- Available text rectangle height.
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- Horizontal alignment inside the rectangle.
- verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top
- Vertical alignment inside the rectangle.
- rotationDegrees System.Double = 0
- Clockwise rotation in degrees.
- rotationCenterX System.Double = 0
- Rotation center X coordinate.
- rotationCenterY System.Double = 0
- Rotation center Y coordinate.
- centerLineInLineHeight System.Boolean = true
- Whether each run glyph box should be vertically centered inside its measured line height.
- flipHorizontal System.Boolean = false
- Whether to mirror each rendered segment horizontally around the rotation center before rotation.
- flipVertical System.Boolean = false
- Whether to mirror each rendered segment 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, 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) #VoidDraws a measured text block on a raster canvas.
Parameters
- canvas OfficeIMO.Drawing.OfficeRasterCanvas
- Raster canvas receiving the text.
- layout OfficeIMO.Drawing.OfficeTextBlockLayout
- Measured text block layout.
- left System.Double
- Left edge of the available text rectangle.
- top System.Double
- Top edge of the available text rectangle.
- width System.Double
- Available text rectangle width.
- height System.Double
- Available text rectangle height.
- color OfficeIMO.Drawing.OfficeColor
- Text color.
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment
- Horizontal alignment inside the rectangle.
- verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment
- Vertical alignment inside the rectangle.
- bold System.Boolean
- Whether to render bold text.
- italic System.Boolean
- Whether to render italic text.
- underline System.Boolean
- Whether to render an underline for each visible line.
- rotationDegrees System.Double
- Clockwise rotation in degrees.
- rotationCenterX System.Double
- Rotation center X coordinate.
- rotationCenterY System.Double
- Rotation center Y coordinate.
- centerLineInLineHeight System.Boolean
- Whether the text glyph box should be vertically centered inside each measured line height.
- underlineOffsetFactor System.Double
- Underline baseline offset as a factor of the resolved font size.
- strikethrough System.Boolean
- Whether to render a strikethrough for each visible line.
- fontFamily System.String
- Requested font family fallback list.
- flipHorizontal System.Boolean
- Whether to mirror each rendered line horizontally around the rotation center before rotation.
- flipVertical System.Boolean
- 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) #VoidDraws a measured text block with native decoration and baseline styling.
Parameters
- canvas OfficeIMO.Drawing.OfficeRasterCanvas
- layout OfficeIMO.Drawing.OfficeTextBlockLayout
- left System.Double
- top System.Double
- width System.Double
- height System.Double
- color OfficeIMO.Drawing.OfficeColor
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top
- bold System.Boolean = false
- italic System.Boolean = false
- underline System.Boolean = false
- rotationDegrees System.Double = 0
- rotationCenterX System.Double = 0
- rotationCenterY System.Double = 0
- centerLineInLineHeight System.Boolean = true
- underlineOffsetFactor System.Double = 0.86
- strikethrough System.Boolean = false
- fontFamily System.String = null
- flipHorizontal System.Boolean = false
- flipVertical System.Boolean = false
- underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal
- decorationColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
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) #VoidDraws a measured text-box plan on a raster canvas, including an optional text background.
Parameters
- canvas OfficeIMO.Drawing.OfficeRasterCanvas
- Raster canvas receiving the text.
- plan OfficeIMO.Drawing.OfficeTextBlockRenderPlan
- Resolved text-box layout and placement.
- color OfficeIMO.Drawing.OfficeColor
- Text color.
- bold System.Boolean
- Whether to render bold text.
- italic System.Boolean
- Whether to render italic text.
- underline System.Boolean
- Whether to render an underline for each visible line.
- horizontalAlignment System.Nullable{OfficeIMO.Drawing.OfficeTextAlignment}
- Horizontal alignment override. Pass null to use plan.
- verticalAlignment System.Nullable{OfficeIMO.Drawing.OfficeTextVerticalAlignment}
- Vertical alignment override. Pass null to use plan.
- rotationDegrees System.Double
- Clockwise rotation in degrees.
- rotationCenterX System.Double
- Rotation center X coordinate.
- rotationCenterY System.Double
- Rotation center Y coordinate.
- backgroundColor System.Nullable{OfficeIMO.Drawing.OfficeColor}
- Optional background color around the measured text block.
- backgroundPaddingX System.Double
- Horizontal background padding.
- backgroundPaddingY System.Double
- Vertical background padding.
- centerLineInLineHeight System.Boolean
- Whether the text glyph box should be vertically centered inside each measured line height.
- underlineOffsetFactor System.Double
- Underline baseline offset as a factor of the resolved font size.
- strikethrough System.Boolean
- Whether to render a strikethrough for each visible line.
- fontFamily System.String
- 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) #VoidDraws a measured text-box plan with native decoration and baseline styling.
Parameters
- canvas OfficeIMO.Drawing.OfficeRasterCanvas
- plan OfficeIMO.Drawing.OfficeTextBlockRenderPlan
- color OfficeIMO.Drawing.OfficeColor
- bold System.Boolean = false
- italic System.Boolean = false
- underline System.Boolean = false
- horizontalAlignment System.Nullable{OfficeIMO.Drawing.OfficeTextAlignment} = null
- verticalAlignment System.Nullable{OfficeIMO.Drawing.OfficeTextVerticalAlignment} = null
- rotationDegrees System.Double = 0
- rotationCenterX System.Double = 0
- rotationCenterY System.Double = 0
- backgroundColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
- backgroundPaddingX System.Double = 0
- backgroundPaddingY System.Double = 0
- centerLineInLineHeight System.Boolean = true
- underlineOffsetFactor System.Double = 0.86
- strikethrough System.Boolean = false
- fontFamily System.String = null
- underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal
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) #VoidWrites an SVG text block using one text element with measured-line tspan children.
Parameters
- writer System.Xml.XmlWriter
- SVG XML writer.
- layout OfficeIMO.Drawing.OfficeTextBlockLayout
- Measured text block layout.
- left System.Double
- Left edge of the available text rectangle.
- top System.Double
- Top edge of the available text rectangle.
- width System.Double
- Available text rectangle width.
- height System.Double
- Available text rectangle height.
- color OfficeIMO.Drawing.OfficeColor
- Text color.
- fontFamily System.String
- SVG font-family value.
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment
- Horizontal alignment inside the rectangle.
- verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment
- Vertical alignment inside the rectangle.
- bold System.Boolean
- Whether to render bold text.
- italic System.Boolean
- Whether to render italic text.
- underline System.Boolean
- Whether to render underlined text.
- rotationDegrees System.Double
- Clockwise rotation in degrees.
- rotationCenterX System.Double
- Rotation center X coordinate.
- rotationCenterY System.Double
- Rotation center Y coordinate.
- svgNamespace System.String
- SVG namespace URI. Pass null to write elements without a namespace.
- configureTextAttributes System.Action{System.Xml.XmlWriter}
- Optional callback for adapter-specific attributes on the text element.
- strikethrough System.Boolean
- 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) #VoidWrites an SVG text block with native decoration and baseline styling.
Parameters
- writer System.Xml.XmlWriter
- layout OfficeIMO.Drawing.OfficeTextBlockLayout
- left System.Double
- top System.Double
- width System.Double
- height System.Double
- color OfficeIMO.Drawing.OfficeColor
- fontFamily System.String
- horizontalAlignment OfficeIMO.Drawing.OfficeTextAlignment = Left
- verticalAlignment OfficeIMO.Drawing.OfficeTextVerticalAlignment = Top
- bold System.Boolean = false
- italic System.Boolean = false
- underline System.Boolean = false
- rotationDegrees System.Double = 0
- rotationCenterX System.Double = 0
- rotationCenterY System.Double = 0
- svgNamespace System.String = null
- configureTextAttributes System.Action{System.Xml.XmlWriter} = null
- strikethrough System.Boolean = false
- underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal
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) #VoidWrites a measured SVG text-box plan, including an optional text background.
Parameters
- writer System.Xml.XmlWriter
- SVG XML writer.
- plan OfficeIMO.Drawing.OfficeTextBlockRenderPlan
- Resolved text-box layout and placement.
- color OfficeIMO.Drawing.OfficeColor
- Text color.
- fontFamily System.String
- SVG font-family value.
- bold System.Boolean
- Whether to render bold text.
- italic System.Boolean
- Whether to render italic text.
- underline System.Boolean
- Whether to render underlined text.
- rotationDegrees System.Double
- Clockwise rotation in degrees.
- rotationCenterX System.Double
- Rotation center X coordinate.
- rotationCenterY System.Double
- Rotation center Y coordinate.
- svgNamespace System.String
- SVG namespace URI. Pass null to write elements without a namespace.
- backgroundColor System.Nullable{OfficeIMO.Drawing.OfficeColor}
- Optional background color around the measured text block.
- backgroundPaddingX System.Double
- Horizontal background padding.
- backgroundPaddingY System.Double
- Vertical background padding.
- configureTextAttributes System.Action{System.Xml.XmlWriter}
- Optional callback for adapter-specific attributes on the text element.
- configureBackgroundAttributes System.Action{System.Xml.XmlWriter}
- Optional callback for adapter-specific attributes on the background rect element.
- strikethrough System.Boolean
- 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) #VoidWrites an SVG text-box plan with native decoration and baseline styling.
Parameters
- writer System.Xml.XmlWriter
- plan OfficeIMO.Drawing.OfficeTextBlockRenderPlan
- color OfficeIMO.Drawing.OfficeColor
- fontFamily System.String
- bold System.Boolean = false
- italic System.Boolean = false
- underline System.Boolean = false
- rotationDegrees System.Double = 0
- rotationCenterX System.Double = 0
- rotationCenterY System.Double = 0
- svgNamespace System.String = null
- backgroundColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
- backgroundPaddingX System.Double = 0
- backgroundPaddingY System.Double = 0
- configureTextAttributes System.Action{System.Xml.XmlWriter} = null
- configureBackgroundAttributes System.Action{System.Xml.XmlWriter} = null
- strikethrough System.Boolean = false
- underlineStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- strikethroughStyle OfficeIMO.Drawing.OfficeTextDecorationStyle = None
- baseline OfficeIMO.Drawing.OfficeTextBaseline = Normal
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object