API Reference
OfficeSvgFormatting
Shared SVG formatting helpers used by OfficeIMO renderers.
Inheritance
- Object
- OfficeSvgFormatting
Methods
public static StringBuilder AppendAttribute(StringBuilder builder, String attributeName, String value) #StringBuilderAppends an escaped SVG attribute to a markup builder.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- attributeName System.String
- Attribute name.
- value System.String
- Attribute value.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendCircleElement(StringBuilder builder, Double cx, Double cy, Double radius, String attributes = null) #StringBuilderAppends a complete SVG circle element using shared numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- cx System.Double
- Circle center x-coordinate.
- cy System.Double
- Circle center y-coordinate.
- radius System.Double
- Circle radius.
- attributes System.String = null
- Optional already-formatted SVG attributes to append after the geometry.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendCircleElement(StringBuilder builder, Double cx, Double cy, Double radius, OfficeColor fill) #StringBuilderAppends a complete filled SVG circle element using shared paint formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- cx System.Double
- Circle center x-coordinate.
- cy System.Double
- Circle center y-coordinate.
- radius System.Double
- Circle radius.
- fill OfficeIMO.Drawing.OfficeColor
- Circle fill color.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendClipPathReference(StringBuilder builder, String clipPathId) #StringBuilderAppends an SVG clip-path reference attribute for the supplied clip path identifier.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- clipPathId System.String
- Clip path identifier without the leading #.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendEllipseElement(StringBuilder builder, Double cx, Double cy, Double rx, Double ry, String attributes = null) #StringBuilderAppends a complete SVG ellipse element using shared numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- cx System.Double
- Ellipse center x-coordinate.
- cy System.Double
- Ellipse center y-coordinate.
- rx System.Double
- Horizontal radius.
- ry System.Double
- Vertical radius.
- attributes System.String = null
- Optional already-formatted SVG attributes to append after the geometry.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendEllipseElement(StringBuilder builder, Double cx, Double cy, Double rx, Double ry, OfficeColor fill) #StringBuilderAppends a complete filled SVG ellipse element using shared paint formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- cx System.Double
- Ellipse center x-coordinate.
- cy System.Double
- Ellipse center y-coordinate.
- rx System.Double
- Horizontal radius.
- ry System.Double
- Vertical radius.
- fill OfficeIMO.Drawing.OfficeColor
- Ellipse fill color.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendHatchPatternRectangle(StringBuilder builder, Double x, Double y, Double width, Double height, OfficeColor color, Double step, Double lineWidth, OfficeHatchPatternKind pattern) #StringBuilderAppends SVG elements for a shared hatch pattern over the supplied rectangle.
Parameters
- builder System.Text.StringBuilder
- x System.Double
- y System.Double
- width System.Double
- height System.Double
- color OfficeIMO.Drawing.OfficeColor
- step System.Double
- lineWidth System.Double
- pattern OfficeIMO.Drawing.OfficeHatchPatternKind
Returns
The supplied builder for call chaining.
public static StringBuilder AppendLinearGradientDefinition(StringBuilder builder, String id, OfficeLinearGradient gradient) #StringBuilderAppends a reusable SVG linear-gradient definition.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- id System.String
- Gradient identifier.
- gradient OfficeIMO.Drawing.OfficeLinearGradient
- Gradient definition.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendLineElement(StringBuilder builder, Double x1, Double y1, Double x2, Double y2, String attributes = null) #StringBuilderAppends a complete SVG line element using shared numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x1 System.Double
- Line start x-coordinate.
- y1 System.Double
- Line start y-coordinate.
- x2 System.Double
- Line end x-coordinate.
- y2 System.Double
- Line end y-coordinate.
- attributes System.String = null
- Optional already-formatted SVG attributes to append after the coordinates.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendLineElement(StringBuilder builder, Double x1, Double y1, Double x2, Double y2, OfficeColor stroke, Double strokeWidth, OfficeStrokeDashStyle dashStyle = Solid, Nullable<OfficeStrokeLineCap> lineCap = null) #StringBuilderAppends a complete stroked SVG line element using shared paint, dash, and cap formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x1 System.Double
- Line start x-coordinate.
- y1 System.Double
- Line start y-coordinate.
- x2 System.Double
- Line end x-coordinate.
- y2 System.Double
- Line end y-coordinate.
- stroke OfficeIMO.Drawing.OfficeColor
- Stroke color.
- strokeWidth System.Double
- Stroke width.
- dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- Stroke dash style.
- lineCap System.Nullable{OfficeIMO.Drawing.OfficeStrokeLineCap} = null
- Optional stroke line cap.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendMatrixTransformAttribute(StringBuilder builder, OfficeTransform transform, Double placementX = 0, Double placementY = 0) #StringBuilderAppends an SVG matrix transform attribute using shared invariant numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- transform OfficeIMO.Drawing.OfficeTransform
- Affine transform matrix.
- placementX System.Double = 0
- Additional x placement offset applied to the transform.
- placementY System.Double = 0
- Additional y placement offset applied to the transform.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendMoveLinePathData(StringBuilder builder, IReadOnlyList<OfficePoint> points, Boolean closePath = false) #StringBuilderAppends SVG path data for a move/line polyline or polygon using shared invariant numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- points System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePoint}
- Points to serialize.
- closePath System.Boolean = false
- When true, appends a close-path command after at least one point.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendNestedSvg(StringBuilder builder, Double x, Double y, Double width, Double height, String innerContent) #StringBuilderAppends a nested SVG viewport with the supplied inner content.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x System.Double
- Nested viewport x-coordinate.
- y System.Double
- Nested viewport y-coordinate.
- width System.Double
- Nested viewport width.
- height System.Double
- Nested viewport height.
- innerContent System.String
- SVG content to place inside the nested viewport.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendNestedSvg(StringBuilder builder, Double x, Double y, Double width, Double height, Double viewBoxWidth, Double viewBoxHeight, String innerContent) #StringBuilderAppends a nested SVG viewport with explicit local coordinate bounds and the supplied inner content.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x System.Double
- Nested viewport x-coordinate.
- y System.Double
- Nested viewport y-coordinate.
- width System.Double
- Nested viewport width.
- height System.Double
- Nested viewport height.
- viewBoxWidth System.Double
- Nested viewport local coordinate width.
- viewBoxHeight System.Double
- Nested viewport local coordinate height.
- innerContent System.String
- SVG content to place inside the nested viewport.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendNestedSvgEnd(StringBuilder builder) #StringBuilderAppends the end tag for a nested SVG viewport.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendNestedSvgStart(StringBuilder builder, Double x, Double y, Double width, Double height) #StringBuilderAppends the start tag for a nested SVG viewport.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x System.Double
- Nested viewport x-coordinate.
- y System.Double
- Nested viewport y-coordinate.
- width System.Double
- Nested viewport width.
- height System.Double
- Nested viewport height.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendNestedSvgStart(StringBuilder builder, Double x, Double y, Double width, Double height, Double viewBoxWidth, Double viewBoxHeight) #StringBuilderAppends the start tag for a nested SVG viewport with an explicit local coordinate space.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x System.Double
- Nested viewport x-coordinate.
- y System.Double
- Nested viewport y-coordinate.
- width System.Double
- Nested viewport width.
- height System.Double
- Nested viewport height.
- viewBoxWidth System.Double
- Nested viewport local coordinate width.
- viewBoxHeight System.Double
- Nested viewport local coordinate height.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendNumberAttribute(StringBuilder builder, String attributeName, Double value) #StringBuilderAppends a numeric SVG attribute using shared invariant formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- attributeName System.String
- Attribute name.
- value System.Double
- Numeric attribute value.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendPaintAttribute(StringBuilder builder, String attributeName, OfficeColor color) #StringBuilderAppends an SVG paint attribute and matching opacity attribute when the color is transparent.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- attributeName System.String
- Paint attribute name, such as fill or stroke.
- color OfficeIMO.Drawing.OfficeColor
- Office color.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendParallelLineElements(StringBuilder builder, Double x1, Double y1, Double x2, Double y2, OfficeColor stroke, Double strokeWidth, Double separation, OfficeStrokeDashStyle dashStyle = Solid, Nullable<OfficeStrokeLineCap> lineCap = null) #StringBuilderAppends two complete parallel SVG line elements using shared paint, dash, and cap formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x1 System.Double
- Source line start X coordinate.
- y1 System.Double
- Source line start Y coordinate.
- x2 System.Double
- Source line end X coordinate.
- y2 System.Double
- Source line end Y coordinate.
- stroke OfficeIMO.Drawing.OfficeColor
- Stroke color.
- strokeWidth System.Double
- Stroke width.
- separation System.Double
- Distance between the two parallel line centers.
- dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
- Stroke dash style.
- lineCap System.Nullable{OfficeIMO.Drawing.OfficeStrokeLineCap} = null
- Optional stroke line cap.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendPathData(StringBuilder builder, IReadOnlyList<OfficePathCommand> commands, Double offsetX = 0, Double offsetY = 0) #StringBuilderAppends SVG path data for shared Office path commands using invariant numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- commands System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePathCommand}
- Path commands to serialize.
- offsetX System.Double = 0
- Additional x offset applied to command points.
- offsetY System.Double = 0
- Additional y offset applied to command points.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendPathElement(StringBuilder builder, String pathData, String attributes = null) #StringBuilderAppends a complete SVG path element using shared attribute escaping.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- pathData System.String
- SVG path data.
- attributes System.String = null
- Optional already-formatted SVG attributes to append after the path data.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendPathElement(StringBuilder builder, IReadOnlyList<OfficePathCommand> commands, Double offsetX = 0, Double offsetY = 0, String attributes = null) #StringBuilderAppends a complete SVG path element from shared Office path commands.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- commands System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePathCommand}
- Path commands to serialize.
- offsetX System.Double = 0
- Additional x offset applied to command points.
- offsetY System.Double = 0
- Additional y offset applied to command points.
- attributes System.String = null
- Optional already-formatted SVG attributes to append after the path data.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendPointsAttribute(StringBuilder builder, IReadOnlyList<OfficePoint> points) #StringBuilderAppends an SVG points attribute for point-list based elements.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- points System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePoint}
- Point list.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendPolygonElement(StringBuilder builder, IReadOnlyList<OfficePoint> points, String attributes = null) #StringBuilderAppends a complete SVG polygon element using shared point-list formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- points System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePoint}
- Polygon points.
- attributes System.String = null
- Optional already-formatted SVG attributes to append after points.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendPolygonElement(StringBuilder builder, IReadOnlyList<OfficePoint> points, OfficeColor fill, Nullable<OfficeColor> stroke = null, Double strokeWidth = 0) #StringBuilderAppends a complete SVG polygon element with shared fill/stroke formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- points System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePoint}
- Polygon points.
- fill OfficeIMO.Drawing.OfficeColor
- Polygon fill color.
- stroke System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
- Optional polygon stroke color.
- strokeWidth System.Double = 0
- Optional polygon stroke width.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendPolylineElement(StringBuilder builder, IReadOnlyList<OfficePoint> points, String attributes = null) #StringBuilderAppends a complete SVG polyline element using shared point-list formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- points System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePoint}
- Polyline points.
- attributes System.String = null
- Optional already-formatted SVG attributes to append before points.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendRadialGradientDefinition(StringBuilder builder, String id, OfficeRadialGradient gradient) #StringBuilderAppends a reusable SVG radial-gradient definition.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- id System.String
- Gradient identifier.
- gradient OfficeIMO.Drawing.OfficeRadialGradient
- Gradient definition.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendRectClipPathDefinition(StringBuilder builder, String clipPathId, Double x, Double y, Double width, Double height, Boolean wrapInDefs = false) #StringBuilderAppends an SVG rectangular clip path definition.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- clipPathId System.String
- Clip path identifier.
- x System.Double
- Clip rectangle left coordinate.
- y System.Double
- Clip rectangle top coordinate.
- width System.Double
- Clip rectangle width.
- height System.Double
- Clip rectangle height.
- wrapInDefs System.Boolean = false
- When true, wraps the clip path in a defs element.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendRectElement(StringBuilder builder, Double x, Double y, Double width, Double height, String attributes = null) #StringBuilderAppends a complete SVG rectangle element using shared numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x System.Double
- Rectangle x-coordinate.
- y System.Double
- Rectangle y-coordinate.
- width System.Double
- Rectangle width.
- height System.Double
- Rectangle height.
- attributes System.String = null
- Optional already-formatted SVG attributes to append after the geometry.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendRectElement(StringBuilder builder, Double x, Double y, Double width, Double height, Double rx, Double ry, String attributes = null) #StringBuilderAppends a complete SVG rounded rectangle element using shared numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- x System.Double
- Rectangle x-coordinate.
- y System.Double
- Rectangle y-coordinate.
- width System.Double
- Rectangle width.
- height System.Double
- Rectangle height.
- rx System.Double
- Horizontal corner radius.
- ry System.Double
- Vertical corner radius.
- attributes System.String = null
- Optional already-formatted SVG attributes to append after the geometry.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendRotateTransformAttribute(StringBuilder builder, Double degrees, Double centerX, Double centerY) #StringBuilderAppends an SVG rotate transform attribute using shared invariant numeric formatting.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- degrees System.Double
- Rotation angle in degrees.
- centerX System.Double
- Rotation center x-coordinate.
- centerY System.Double
- Rotation center y-coordinate.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendStrokeDashArrayAttribute(StringBuilder builder, String dashArray) #StringBuilderAppends an SVG stroke-dasharray attribute when a dash pattern is present.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- dashArray System.String
- SVG dash-array value, or null for solid strokes.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendStrokeDashStyleAttribute(StringBuilder builder, OfficeStrokeDashStyle dashStyle, Double strokeWidth) #StringBuilderAppends an SVG stroke-dasharray attribute for a shared Office stroke dash style.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle
- Office stroke dash style.
- strokeWidth System.Double
- Rendered stroke width.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendStrokeLineCapAttribute(StringBuilder builder, OfficeStrokeLineCap cap) #StringBuilderAppends an SVG stroke-linecap attribute.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- cap OfficeIMO.Drawing.OfficeStrokeLineCap
- Stroke line cap.
Returns
The supplied builder for call chaining.
public static StringBuilder AppendStrokeLineJoinAttribute(StringBuilder builder, OfficeStrokeLineJoin join) #StringBuilderAppends an SVG stroke-linejoin attribute.
Parameters
- builder System.Text.StringBuilder
- Markup builder.
- join OfficeIMO.Drawing.OfficeStrokeLineJoin
- Stroke line join.
Returns
The supplied builder for call chaining.
public static String Escape(String value) #StringEscapes text for XML/SVG attribute or element content.
Parameters
- value System.String
- Text to escape.
Returns
Escaped text, or an empty string for null.
public static String ExtractSvgInner(String svg) #StringExtracts the content inside an SVG root element.
Parameters
- svg System.String
- SVG markup, or already-inner SVG content.
Returns
Inner SVG markup when a root SVG element is found; otherwise the original value.
public static String FormatImageFrameTransform(OfficeImageFrameTransform transform) #StringFormats an SVG image frame transform using shared projection rotation and mirror semantics.
Parameters
- transform OfficeIMO.Drawing.OfficeImageFrameTransform
- Image frame transform.
Returns
SVG transform value, or null when the frame transform is identity.
public static String FormatMatrixTransform(OfficeTransform transform, Double placementX = 0, Double placementY = 0) #StringFormats an SVG matrix transform using shared invariant numeric formatting.
Parameters
- transform OfficeIMO.Drawing.OfficeTransform
- Affine transform matrix.
- placementX System.Double = 0
- Additional x placement offset applied to the transform.
- placementY System.Double = 0
- Additional y placement offset applied to the transform.
Returns
SVG matrix transform value.
public static String FormatMoveLinePathData(IReadOnlyList<OfficePoint> points, Boolean closePath = false) #StringFormats SVG path data for a move/line polyline or polygon using shared invariant numeric formatting.
Parameters
- points System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePoint}
- Points to serialize.
- closePath System.Boolean = false
- When true, appends a close-path command after at least one point.
Returns
SVG path data, or an empty string when no points are supplied.
public static String FormatNumber(Double value) #StringFormats a numeric SVG attribute value using invariant culture and compact precision.
Parameters
- value System.Double
- Numeric value to format.
Returns
Formatted SVG number.
public static String FormatPathData(IReadOnlyList<OfficePathCommand> commands, Double offsetX = 0, Double offsetY = 0) #StringFormats SVG path data for shared Office path commands using invariant numeric formatting.
Parameters
- commands System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficePathCommand}
- Path commands to serialize.
- offsetX System.Double = 0
- Additional x offset applied to command points.
- offsetY System.Double = 0
- Additional y offset applied to command points.
Returns
SVG path data, or an empty string when no commands are supplied.
public static String FormatRotateTransform(Double degrees, Double centerX, Double centerY) #StringFormats an SVG rotate transform using shared invariant numeric formatting.
Parameters
- degrees System.Double
- Rotation angle in degrees.
- centerX System.Double
- Rotation center x-coordinate.
- centerY System.Double
- Rotation center y-coordinate.
Returns
SVG rotate transform value.
public static String FormatRotateTransform(Double degrees) #StringFormats an SVG rotate transform around the current transform origin using shared invariant numeric formatting.
Parameters
- degrees System.Double
- Rotation angle in degrees.
Returns
SVG rotate transform value.
public static String FormatStrokeLineCap(OfficeStrokeLineCap cap) #StringConverts a stroke line cap value to an SVG attribute value.
Parameters
- cap OfficeIMO.Drawing.OfficeStrokeLineCap
- Stroke line cap.
Returns
SVG stroke-linecap value.
public static String FormatStrokeLineJoin(OfficeStrokeLineJoin join) #StringConverts a stroke line join value to an SVG attribute value.
Parameters
- join OfficeIMO.Drawing.OfficeStrokeLineJoin
- Stroke line join.
Returns
SVG stroke-linejoin value.
public static String ToCssColor(OfficeColor color) #StringConverts an Office color to a CSS RGB hex color for SVG paint attributes.
Parameters
- color OfficeIMO.Drawing.OfficeColor
- Office color.
Returns
CSS color in #RRGGBB form.
public static Double ToOpacity(OfficeColor color) #DoubleConverts an Office color alpha channel to an SVG opacity value.
Parameters
- color OfficeIMO.Drawing.OfficeColor
- Office color.
Returns
Opacity between 0 and 1.
public static Void WriteColorAttribute(XmlWriter writer, String attributeName, OfficeColor color) #VoidWrites an SVG color attribute and matching opacity attribute when transparency is present.
Parameters
- writer System.Xml.XmlWriter
- XML writer receiving SVG attributes.
- attributeName System.String
- SVG paint attribute name, such as fill or stroke.
- color OfficeIMO.Drawing.OfficeColor
- Office color.
public static Void WriteNumberAttribute(XmlWriter writer, String attributeName, Double value) #VoidWrites a numeric SVG attribute using shared invariant formatting.
Parameters
- writer System.Xml.XmlWriter
- XML writer receiving the attribute.
- attributeName System.String
- Attribute name.
- value System.Double
- Numeric attribute value.
public static Void WriteRotateTransformAttribute(XmlWriter writer, Double degrees, Double centerX, Double centerY) #VoidWrites an SVG rotate transform attribute using shared invariant numeric formatting.
Parameters
- writer System.Xml.XmlWriter
- XML writer receiving the attribute.
- degrees System.Double
- Rotation angle in degrees.
- centerX System.Double
- Rotation center x-coordinate.
- centerY System.Double
- Rotation center y-coordinate.
public static Void WriteStrokeDashArrayAttribute(XmlWriter writer, String dashArray) #VoidWrites an SVG stroke-dasharray attribute when a dash pattern is present.
Parameters
- writer System.Xml.XmlWriter
- XML writer receiving the attribute.
- dashArray System.String
- SVG dash-array value, or null for solid strokes.
public static Void WriteStrokeDashStyleAttribute(XmlWriter writer, OfficeStrokeDashStyle dashStyle, Double strokeWidth) #VoidWrites an SVG stroke-dasharray attribute for a shared Office stroke dash style.
Parameters
- writer System.Xml.XmlWriter
- XML writer receiving the attribute.
- dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle
- Office stroke dash style.
- strokeWidth System.Double
- Rendered stroke width.
public static Void WriteStrokeLineCapAttribute(XmlWriter writer, OfficeStrokeLineCap cap) #VoidWrites an SVG stroke-linecap attribute.
Parameters
- writer System.Xml.XmlWriter
- XML writer receiving the attribute.
- cap OfficeIMO.Drawing.OfficeStrokeLineCap
- Stroke line cap.
public static Void WriteStrokeLineJoinAttribute(XmlWriter writer, OfficeStrokeLineJoin join) #VoidWrites an SVG stroke-linejoin attribute.
Parameters
- writer System.Xml.XmlWriter
- XML writer receiving the attribute.
- join OfficeIMO.Drawing.OfficeStrokeLineJoin
- Stroke line join.
public static Void WriteViewBoxAttribute(XmlWriter writer, Double minX, Double minY, Double width, Double height) #VoidWrites an SVG viewBox attribute using shared invariant numeric formatting.
Parameters
- writer System.Xml.XmlWriter
- XML writer receiving the attribute.
- minX System.Double
- Minimum x-coordinate.
- minY System.Double
- Minimum y-coordinate.
- width System.Double
- ViewBox width.
- height System.Double
- ViewBox height.
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object