Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeStrokeDashStyleExtensions

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Shared helpers for mapping Office stroke dash styles to renderer dash patterns.

Inheritance

  • Object
  • OfficeStrokeDashStyleExtensions

Methods

public static Double[] GetDashPattern(OfficeStrokeDashStyle style, Double strokeWidth) #
Returns: Double[]

Returns a dash/gap pattern in rendered units for the supplied stroke width.

Parameters

style OfficeIMO.Drawing.OfficeStrokeDashStyle requiredposition: 0
Stroke dash style.
strokeWidth System.Double requiredposition: 1
Rendered stroke width.

Returns

Alternating dash and gap lengths. An empty array means a solid stroke.

public static String GetSvgDashArray(OfficeStrokeDashStyle style, Double strokeWidth) #
Returns: String

Returns an SVG stroke-dasharray value for the supplied stroke width.

Parameters

style OfficeIMO.Drawing.OfficeStrokeDashStyle requiredposition: 0
Stroke dash style.
strokeWidth System.Double requiredposition: 1
Rendered stroke width.

Returns

SVG dash-array value, or null for solid strokes.