Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeSvgPrimitiveWriter

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Shared XML writer helpers for simple SVG primitives used by OfficeIMO renderers.

Inheritance

  • Object
  • OfficeSvgPrimitiveWriter

Methods

public static Void WriteCircle(XmlWriter writer, String svgNamespace, Double cx, Double cy, Double radius, OfficeColor color, Boolean fill, Double strokeWidth) #
Returns: Void

Writes a filled or stroked SVG circle.

Parameters

writer System.Xml.XmlWriter requiredposition: 0
svgNamespace System.String requiredposition: 1
cx System.Double requiredposition: 2
cy System.Double requiredposition: 3
radius System.Double requiredposition: 4
color OfficeIMO.Drawing.OfficeColor requiredposition: 5
fill System.Boolean requiredposition: 6
strokeWidth System.Double requiredposition: 7
public static Void WriteLine(XmlWriter writer, String svgNamespace, Double x1, Double y1, Double x2, Double y2, OfficeColor color, Double strokeWidth) #
Returns: Void

Writes a stroked SVG line with rounded line caps.

Parameters

writer System.Xml.XmlWriter requiredposition: 0
svgNamespace System.String requiredposition: 1
x1 System.Double requiredposition: 2
y1 System.Double requiredposition: 3
x2 System.Double requiredposition: 4
y2 System.Double requiredposition: 5
color OfficeIMO.Drawing.OfficeColor requiredposition: 6
strokeWidth System.Double requiredposition: 7
public static Void WritePath(XmlWriter writer, String svgNamespace, String data, OfficeColor color, Boolean fill, Double strokeWidth) #
Returns: Void

Writes a filled or stroked SVG path.

Parameters

writer System.Xml.XmlWriter requiredposition: 0
svgNamespace System.String requiredposition: 1
data System.String requiredposition: 2
color OfficeIMO.Drawing.OfficeColor requiredposition: 3
fill System.Boolean requiredposition: 4
strokeWidth System.Double requiredposition: 5
public static Void WriteRectangle(XmlWriter writer, String svgNamespace, Double x, Double y, Double width, Double height, OfficeColor color, Boolean fill, Double strokeWidth, Double cornerRadius = 0) #
Returns: Void

Writes a filled or stroked SVG rectangle.

Parameters

writer System.Xml.XmlWriter requiredposition: 0
svgNamespace System.String requiredposition: 1
x System.Double requiredposition: 2
y System.Double requiredposition: 3
width System.Double requiredposition: 4
height System.Double requiredposition: 5
color OfficeIMO.Drawing.OfficeColor requiredposition: 6
fill System.Boolean requiredposition: 7
strokeWidth System.Double requiredposition: 8
cornerRadius System.Double = 0 optionalposition: 9